summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-09 14:34:09 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-09 14:34:09 +0000
commit8a311cc5a9c7a151e9fc634ade08ce677b8bcc67 (patch)
tree77a06561465062b15fa050c6676c3e6ca62dcb2e /src
parentea826e47880c2917ee79f9c511244842ba65e15a (diff)
downloads6-8a311cc5a9c7a151e9fc634ade08ce677b8bcc67.tar.xz
errno fix in ftrigr_subscribe
Diffstat (limited to 'src')
-rw-r--r--src/libs6/ftrigr_subscribe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs6/ftrigr_subscribe.c b/src/libs6/ftrigr_subscribe.c
index d645931..95a5d0b 100644
--- a/src/libs6/ftrigr_subscribe.c
+++ b/src/libs6/ftrigr_subscribe.c
@@ -24,7 +24,9 @@ uint16 ftrigr_subscribe (ftrigr_t *a, char const *path, char const *re, uint32 o
uint32_pack_big(tmp+11, (uint32)relen) ;
if (!skaclient_sendv(&a->connection, v, 3, &skaclient_default_cb, &err, deadline, stamp))
{
+ register int e = errno ;
gensetdyn_delete(&a->data, i) ;
+ errno = e ;
return 0 ;
}
if (err)