Fix another double-close
authorColin Leroy <colin@colino.net>
Sun, 8 Jun 2014 07:55:41 +0000 (09:55 +0200)
committerColin Leroy <colin@colino.net>
Sun, 8 Jun 2014 07:55:41 +0000 (09:55 +0200)
src/plugins/clamd/libclamd/clamd-plugin.c

index b11554d..80bf1e9 100644 (file)
@@ -509,7 +509,6 @@ Clamd_Stat clamd_verify_email(const gchar* path, response* result) {
                        result->msg = g_strdup(tmp);
                        g_free(tmp);
                        debug_print("result: %s\n", result->msg);
-                       close(sock);
                        return stat;
                }
                debug_print("copy to buf: %s\n", tmp);