fixed a leaking file descriptor in extract_attachment_content()

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-03-06 20:37:46 +01:00
parent 15c9fa7101
commit 9997c10b4e

View File

@ -308,8 +308,8 @@ void extract_attachment_content(struct session_data *sdata, struct parser_state
memcpy(&(state->b_body[state->bodylen]), outbuf, n);
state->bodylen += n;
}
//printf("Output: %.*s\n", n, outbuf);
}
close(link[0]);
wait(NULL);
return;
}