diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2012-10-10 19:08:46 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2012-10-10 19:08:46 +0000 |
| commit | 6a336cec4bc1f5b2ff557176836585ff814098cd (patch) | |
| tree | 63d1f106b99a707c8e82c0a45512734ebfdc9d83 /lib/libc/rpc | |
| parent | cd93dff8d4a20eddf58a09bbb3d8458ced3c4fb6 (diff) | |
Notes
Diffstat (limited to 'lib/libc/rpc')
| -rw-r--r-- | lib/libc/rpc/rpc_generic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/rpc/rpc_generic.c b/lib/libc/rpc/rpc_generic.c index ab259d59f30f..0ac4597bc78f 100644 --- a/lib/libc/rpc/rpc_generic.c +++ b/lib/libc/rpc/rpc_generic.c @@ -269,7 +269,8 @@ __rpc_getconfip(nettype) } while ((nconf = getnetconfig(confighandle)) != NULL) { if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { - if (strcmp(nconf->nc_proto, NC_TCP) == 0) { + if (strcmp(nconf->nc_proto, NC_TCP) == 0 && + netid_tcp == NULL) { netid_tcp = strdup(nconf->nc_netid); if (main_thread) netid_tcp_main = netid_tcp; @@ -277,7 +278,8 @@ __rpc_getconfip(nettype) thr_setspecific(tcp_key, (void *) netid_tcp); } else - if (strcmp(nconf->nc_proto, NC_UDP) == 0) { + if (strcmp(nconf->nc_proto, NC_UDP) == 0 && + netid_udp == NULL) { netid_udp = strdup(nconf->nc_netid); if (main_thread) netid_udp_main = netid_udp; |
