mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-08-02 06:35:02 +02:00
fixed a leaking file descriptor in extract_attachment_content()
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user