summaryrefslogtreecommitdiffstats
path: root/freebsd/lib/libc/rpc/clnt_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/lib/libc/rpc/clnt_generic.c')
-rw-r--r--freebsd/lib/libc/rpc/clnt_generic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/lib/libc/rpc/clnt_generic.c b/freebsd/lib/libc/rpc/clnt_generic.c
index 5d1f7480..07a5258f 100644
--- a/freebsd/lib/libc/rpc/clnt_generic.c
+++ b/freebsd/lib/libc/rpc/clnt_generic.c
@@ -398,6 +398,11 @@ clnt_tli_create(int fd, const struct netconfig *nconf,
goto err1; /* borrow errors from clnt_dg/vc creates */
if (nconf) {
cl->cl_netid = strdup(nconf->nc_netid);
+#ifdef __rtems__
+ if (nconf->nc_device == NULL)
+ cl->cl_tp = "";
+ else
+#endif /* __rtems__ */
cl->cl_tp = strdup(nconf->nc_device);
} else {
cl->cl_netid = "";