app-layer-stmp: simplify code

Delete a only used once goto to a point where we only do a return.
pull/1667/head
Eric Leblond 11 years ago
parent 0f3979cc81
commit e43eb76abd

@ -369,7 +369,7 @@ int SMTPProcessDataChunk(const uint8_t *chunk, uint32_t len,
if (smtp_state->files_ts == NULL) { if (smtp_state->files_ts == NULL) {
ret = MIME_DEC_ERR_MEM; ret = MIME_DEC_ERR_MEM;
SCLogError(SC_ERR_MEM_ALLOC, "Could not create file container"); SCLogError(SC_ERR_MEM_ALLOC, "Could not create file container");
goto end; SCReturnInt(ret);
} }
} }
files = smtp_state->files_ts; files = smtp_state->files_ts;
@ -451,7 +451,7 @@ int SMTPProcessDataChunk(const uint8_t *chunk, uint32_t len,
if (files != NULL) { if (files != NULL) {
FilePrune(files); FilePrune(files);
} }
end:
SCReturnInt(ret); SCReturnInt(ret);
} }

Loading…
Cancel
Save