mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-18 17:57:39 +03:00
connection loss before it is logged resulted in logging uninitialised characters
This commit is contained in:
parent
40c616e94c
commit
9dc3e3ce56
5
log.c
5
log.c
@ -194,7 +194,10 @@ void log_connection(struct connection_desc* desc, const struct connection *cnx)
|
|||||||
|
|
||||||
if (!desc) {
|
if (!desc) {
|
||||||
desc = &d;
|
desc = &d;
|
||||||
get_connection_desc(desc, cnx);
|
if (!get_connection_desc(desc, cnx)) {
|
||||||
|
print_message(msg_connections, "%s: lost incoming connection\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_message(msg_connections, "%s:connection from %s to %s forwarded from %s to %s\n",
|
print_message(msg_connections, "%s:connection from %s to %s forwarded from %s to %s\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user