aboutsummaryrefslogtreecommitdiff
path: root/src/core/transport.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-12-29 20:13:11 -0800
committerGarrett D'Amore <garrett@damore.org>2018-12-31 14:23:34 -0800
commite0fff1f9c45f5486fc2e7eeb49b4462c3bb2dad4 (patch)
treefe6914c8b06e87880e72cb27486971bf7fc056ff /src/core/transport.c
parent97118a423a48ecea816f37cb86378c5bafba2d51 (diff)
downloadnng-e0fff1f9c45f5486fc2e7eeb49b4462c3bb2dad4.tar.gz
nng-e0fff1f9c45f5486fc2e7eeb49b4462c3bb2dad4.tar.bz2
nng-e0fff1f9c45f5486fc2e7eeb49b4462c3bb2dad4.zip
fixes #835 inproc should use new option API
Some more changes to use nni_type instead of nni_opt_type are included as well.
Diffstat (limited to 'src/core/transport.c')
-rw-r--r--src/core/transport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/transport.c b/src/core/transport.c
index da192416..54c4bcfe 100644
--- a/src/core/transport.c
+++ b/src/core/transport.c
@@ -128,6 +128,7 @@ nni_tran_chkopt(const char *name, const void *v, size_t sz, int typ)
if ((dops->d_setopt != NULL) &&
((rv = dops->d_setopt(NULL, name, v, sz, typ)) !=
NNG_ENOTSUP)) {
+ nni_mtx_unlock(&nni_tran_lk);
return (rv);
}
for (o = dops->d_options; o && o->o_name != NULL; o++) {
@@ -146,6 +147,7 @@ nni_tran_chkopt(const char *name, const void *v, size_t sz, int typ)
if ((lops->l_setopt != NULL) &&
((rv = lops->l_setopt(NULL, name, v, sz, typ)) !=
NNG_ENOTSUP)) {
+ nni_mtx_unlock(&nni_tran_lk);
return (rv);
}
for (o = lops->l_options; o && o->o_name != NULL; o++) {