summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/sctp_syscalls.c')
-rw-r--r--sys/netinet/sctp_syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_syscalls.c b/sys/netinet/sctp_syscalls.c
index 71e2f72..5c16e8d 100644
--- a/sys/netinet/sctp_syscalls.c
+++ b/sys/netinet/sctp_syscalls.c
@@ -562,7 +562,7 @@ sys_sctp_generic_recvmsg(td, uap)
if (fromlen && uap->from) {
len = fromlen;
- if (len <= 0 || fromsa == 0)
+ if (len <= 0 || fromsa == NULL)
len = 0;
else {
len = MIN(len, fromsa->sa_len);
OpenPOWER on IntegriCloud