From a85c9f45d14a52f66c414e743fd609d9a7324685 Mon Sep 17 00:00:00 2001 From: Pieter Hintjens Date: Wed, 20 Feb 2013 14:05:55 +0100 Subject: [PATCH] MAXMSGSIZE broke when I cleaned up this code - fixed --- src/options.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/options.cpp b/src/options.cpp index 57596e05..7e60227a 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -144,7 +144,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_, case ZMQ_RECONNECT_IVL_MAX: if (is_int && value >= 0) reconnect_ivl_max = value; - else + else valid = false; break; @@ -160,6 +160,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_, maxmsgsize = *((int64_t *) optval_); else valid = false; + break; case ZMQ_MULTICAST_HOPS: if (is_int && value > 0)