mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
fixed a leaking file descriptor in extract_attachment_content()
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
15c9fa7101
commit
9997c10b4e
@ -308,8 +308,8 @@ void extract_attachment_content(struct session_data *sdata, struct parser_state
|
|||||||
memcpy(&(state->b_body[state->bodylen]), outbuf, n);
|
memcpy(&(state->b_body[state->bodylen]), outbuf, n);
|
||||||
state->bodylen += n;
|
state->bodylen += n;
|
||||||
}
|
}
|
||||||
//printf("Output: %.*s\n", n, outbuf);
|
|
||||||
}
|
}
|
||||||
|
close(link[0]);
|
||||||
wait(NULL);
|
wait(NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user