From 505a9bce029e51540739c853a6c9eef0ecfb2e90 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 4 Apr 2018 11:07:56 -0700 Subject: fixes #329 type checking not done for setopt --- src/protocol/pair0/pair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocol/pair0/pair.c') diff --git a/src/protocol/pair0/pair.c b/src/protocol/pair0/pair.c index bc8be866..ccece972 100644 --- a/src/protocol/pair0/pair.c +++ b/src/protocol/pair0/pair.c @@ -232,10 +232,10 @@ pair0_sock_close(void *arg) } static int -pair0_sock_setopt_raw(void *arg, const void *buf, size_t sz) +pair0_sock_setopt_raw(void *arg, const void *buf, size_t sz, int typ) { pair0_sock *s = arg; - return (nni_setopt_bool(&s->raw, buf, sz)); + return (nni_copyin_bool(&s->raw, buf, sz, typ)); } static int -- cgit v1.2.3-70-g09d2