From 5706608b3787935b0bcb115bb8fd899005e4ce65 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 1 Nov 2018 19:54:30 -0700 Subject: fixes #766 NNG asserts when setting socket name Reported by @TBastiani (with suggested fix). Test validation added. --- src/core/options.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/core/options.c b/src/core/options.c index 843b066d..d61b35ac 100644 --- a/src/core/options.c +++ b/src/core/options.c @@ -157,9 +157,6 @@ nni_copyin_str(char *s, const void *v, size_t sz, size_t maxsz, nni_opt_type t) switch (t) { case NNI_TYPE_STRING: - z = strlen(v) + 1; - NNI_ASSERT(sz == z); - break; case NNI_TYPE_OPAQUE: if ((z = nni_strnlen(v, sz)) >= sz) { return (NNG_EINVAL); // missing terminator -- cgit v1.2.3-70-g09d2