diff options
-rw-r--r-- | rpc/rpc-lib/src/rpcsvc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c index 01b441317c3..9ef0f352ec8 100644 --- a/rpc/rpc-lib/src/rpcsvc.c +++ b/rpc/rpc-lib/src/rpcsvc.c @@ -1679,24 +1679,24 @@ rpcsvc_create_listeners (rpcsvc_t *svc, dict_t *options, char *name) goto out; } - ret = dict_set_dynstr (options, "transport-type", ptr); + ret = asprintf (&transport_name, "%s.%s", ptr, name); if (ret == -1) { goto out; } - ret = asprintf (&transport_name, "%s.%s", ptr, name); + ret = dict_set_dynstr (options, "transport-type", ptr); if (ret == -1) { goto out; } + ptr = strtok_r (NULL, ",", &saveptr); + ret = rpcsvc_create_listener (svc, options, transport_name); if (ret != 0) { goto out; } count++; - - ptr = strtok_r (NULL, ",", &saveptr); } ptr = NULL; |