diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2011-09-15 12:56:57 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-09-19 03:00:26 +0200 |
commit | dc4479f27d14f1ed5e17ccac401f8169813843d7 (patch) | |
tree | c863ec86badd78a6f45ffbe6808b09941baa10f5 /src/input | |
parent | 883cfe5be8d8f8ef6ecc4c67cb2574865729dac8 (diff) |
ipa: Fix resource leak if we encounter an error in ipa_server_conn_read
In case of a connection reset or protocol error we should destroy the
connection as well.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/ipa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/ipa.c b/src/input/ipa.c index 2441de4..c881b22 100644 --- a/src/input/ipa.c +++ b/src/input/ipa.c @@ -390,6 +390,7 @@ static void ipa_server_conn_read(struct ipa_server_conn *conn) if (errno == EPIPE || errno == ECONNRESET) { LOGP(DLINP, LOGL_ERROR, "lost connection with server\n"); } + ipa_server_conn_destroy(conn); return; } else if (ret == 0) { LOGP(DLINP, LOGL_ERROR, "connection closed with server\n"); |