From aae36ab297feb6e934f478e7655c123d928651a7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 23 Jan 2015 15:58:24 +0000 Subject: Bugfixes: - seek_set now uses SEEK_SET (those functions are useless now, they will go at the next major version update) - skaclient_server_init now correctly sanitizes unixmessage_timed_receive --- src/libunixonacid/skaclient_server_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libunixonacid/skaclient_server_init.c') diff --git a/src/libunixonacid/skaclient_server_init.c b/src/libunixonacid/skaclient_server_init.c index e44d0da..86eb003 100644 --- a/src/libunixonacid/skaclient_server_init.c +++ b/src/libunixonacid/skaclient_server_init.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include #include #include #include @@ -7,7 +8,7 @@ int skaclient_server_init (unixmessage_receiver_t *in, unixmessage_sender_t *out, unixmessage_sender_t *asyncout, char const *before, unsigned int beforelen, char const *after, unsigned int afterlen, tain_t const *deadline, tain_t *stamp) { unixmessage_t m ; - return (unixmessage_timed_receive(in, &m, deadline, stamp) >= 0) + return (sanitize_read(unixmessage_timed_receive(in, &m, deadline, stamp)) >= 0) && skaclient_server_ack(&m, out, asyncout, before, beforelen, after, afterlen) && unixmessage_sender_timed_flush(out, deadline, stamp) ; } -- cgit v1.2.3