diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-20 17:38:20 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-04-19 22:34:13 +0300 |
commit | ad2568571a9e0fa82fbc020b1a971ac51dc4dad0 (patch) | |
tree | b05496bd71b953875439e3de87ba7a2adef03a09 /usr/src/uts/common/fs/nfs/nfs_dlinet.c | |
parent | 49ee6bfbbe326d1f0bbc34934ab8b07a000305c4 (diff) | |
download | illumos-joyent-ad2568571a9e0fa82fbc020b1a971ac51dc4dad0.tar.gz |
10776 nfs_dlboot: NULL pointer errors
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/fs/nfs/nfs_dlinet.c')
-rw-r--r-- | usr/src/uts/common/fs/nfs/nfs_dlinet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/nfs/nfs_dlinet.c b/usr/src/uts/common/fs/nfs/nfs_dlinet.c index dfb7a15466..a00b293f78 100644 --- a/usr/src/uts/common/fs/nfs/nfs_dlinet.c +++ b/usr/src/uts/common/fs/nfs/nfs_dlinet.c @@ -1976,7 +1976,7 @@ pmap_kgetport(struct knetconfig *knconf, struct netbuf *call_addr, } if (stat == RPC_SUCCESS) { - if ((ua != NULL) && (ua[0] != NULL)) { + if ((ua != NULL) && (ua[0] != '\0')) { port = rpc_uaddr2port(AF_INET, ua); } else { /* Address unknown */ |