summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_unput.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-10 16:12:57 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-10 16:12:57 +0000
commit1a83aaeb67d50f321fbf4caf0d402bbacebd6857 (patch)
treeeff182292253f5ab9e1d2de49669c8629fc2eab5 /src/libunixonacid/unixmessage_unput.c
parent00a4c6056dba93c98cac687f24d5122acc76ded0 (diff)
downloadskalibs-1a83aaeb67d50f321fbf4caf0d402bbacebd6857.tar.xz
Bugfix: unixmessage_sender_free didn't close all the pending fds
Diffstat (limited to 'src/libunixonacid/unixmessage_unput.c')
-rw-r--r--src/libunixonacid/unixmessage_unput.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libunixonacid/unixmessage_unput.c b/src/libunixonacid/unixmessage_unput.c
index 48d46b5..63e94b8 100644
--- a/src/libunixonacid/unixmessage_unput.c
+++ b/src/libunixonacid/unixmessage_unput.c
@@ -19,5 +19,6 @@ int unixmessage_unput_and_maybe_drop (unixmessage_sender_t *b, int drop)
}
b->data.len = start->left ;
genalloc_setlen(int, &b->fds, start->right) ;
+ genalloc_setlen(diuint, &b->offsets, n-1) ;
return 1 ;
}