aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.lockd/lockd.c
diff options
context:
space:
mode:
authorMatteo Riondato <matteo@FreeBSD.org>2007-11-07 10:21:36 +0000
committerMatteo Riondato <matteo@FreeBSD.org>2007-11-07 10:21:36 +0000
commit96e460ec534f08eb10f4399f79381ae333de9e3c (patch)
tree588f5e2b8f370f6bd3ae376658908e1166d2a29a /usr.sbin/rpc.lockd/lockd.c
parent56e4ceea65752105ac8eea21a327149187a6a5da (diff)
downloadsrc-96e460ec534f08eb10f4399f79381ae333de9e3c.tar.gz
src-96e460ec534f08eb10f4399f79381ae333de9e3c.zip
Notes
Diffstat (limited to 'usr.sbin/rpc.lockd/lockd.c')
-rw-r--r--usr.sbin/rpc.lockd/lockd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpc.lockd/lockd.c b/usr.sbin/rpc.lockd/lockd.c
index 6c2e2c76f2ba..99081d4eb9f0 100644
--- a/usr.sbin/rpc.lockd/lockd.c
+++ b/usr.sbin/rpc.lockd/lockd.c
@@ -388,7 +388,7 @@ create_service(struct netconfig *nconf)
break;
case AF_INET6:
sin6 = malloc(sizeof(struct sockaddr_in6));
- if (res->ai_addr == NULL)
+ if (sin6 == NULL)
out_of_mem();
sin6->sin6_family = AF_INET6;
sin6->sin6_port = htons(0);