unix_msg: Fix CID 1372875 Double close
authorVolker Lendecke <vl@samba.org>
Wed, 14 Sep 2016 05:13:38 +0000 (07:13 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 14 Sep 2016 13:42:26 +0000 (15:42 +0200)
The two error callers of unix_dgram_sendq_schedule_free already run down the
sendq in the error case.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/lib/unix_msg/unix_msg.c

index 8645c97a2de7fcb10890ebdd3a1470bb79912b8c..50c8c09efa2f8c49a4ace87f62280be3b68622c0 100644 (file)
@@ -470,7 +470,6 @@ static int unix_dgram_sendq_schedule_free(struct unix_dgram_send_queue *q)
                unix_dgram_sendq_scheduled_free_handler,
                q);
        if (q->timeout == NULL) {
-               unix_dgram_send_queue_free(q);
                return ENOMEM;
        }