aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorSimon L. B. Nielsen <simon@FreeBSD.org>2007-10-27 12:24:47 +0000
committerSimon L. B. Nielsen <simon@FreeBSD.org>2007-10-27 12:24:47 +0000
commit89ca9145fb990d01535f7bd468a80cd29bfc50d7 (patch)
tree7fc0cb08100303adf9773e5d7208e8381b839bbc /usr.sbin/mountd
parent438aeadf274495b2ac0281c3b1af3f2cb9d4d154 (diff)
Notes
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 01b332952202..11057c39b8ee 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -594,7 +594,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);