git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f764be
)
unix_msg: Fix unix_dgram_send_queue_init
author
Volker Lendecke
<vl@samba.org>
Wed, 14 Sep 2016 05:16:26 +0000
(07:16 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 14 Sep 2016 17:30:27 +0000
(19:30 +0200)
We should not free a DLIST element
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 14 19:30:28 CEST 2016 on sn-devel-144
source3/lib/unix_msg/unix_msg.c
patch
|
blob
|
history
diff --git
a/source3/lib/unix_msg/unix_msg.c
b/source3/lib/unix_msg/unix_msg.c
index 50c8c09efa2f8c49a4ace87f62280be3b68622c0..5cbf428c894473c5ef1ade2ca00331fc2943abff 100644
(file)
--- a/
source3/lib/unix_msg/unix_msg.c
+++ b/
source3/lib/unix_msg/unix_msg.c
@@
-414,14
+414,14
@@
static int unix_dgram_send_queue_init(
goto fail_close;
}
- DLIST_ADD(ctx->send_queues, q);
-
ret = unix_dgram_sendq_schedule_free(q);
if (ret != 0) {
err = ENOMEM;
goto fail_close;
}
+ DLIST_ADD(ctx->send_queues, q);
+
*result = q;
return 0;