commit 679fc24d909141df855936dd989a4b9dc3e16a7b Author: George Kadianakis desnacked@riseup.net Date: Mon Jan 16 19:20:59 2012 +0200
Handle NULL peername in conn_free(). --- src/network.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/network.c b/src/network.c index bb9ce83..4cdd059 100644 --- a/src/network.c +++ b/src/network.c @@ -403,7 +403,8 @@ conn_free(conn_t *conn) if (connections) { smartlist_remove(connections, conn); log_debug("Closing connection with %s; %d remaining", - conn->peername, smartlist_len(connections)); + conn->peername ? conn->peername : "'unknown'", + smartlist_len(connections)); } if (conn->peername) free(conn->peername);