freebsd-ports/dns/nsping/files/patch-dns-rr.c
Peter Pentchev 825121abde Fix the generation of DNS packet id's when nsping's pid is over 64K.
While I'm here, fix a compiler warning.

PR:		76702
Submitted by:	Vladimir Kotal <vlada@devnull.cz>
2005-07-04 11:18:30 +00:00

11 lines
203 B
C

--- dns-rr.c.orig Mon Jul 4 12:02:22 2005
+++ dns-rr.c Mon Jul 4 12:02:39 2005
@@ -23,7 +23,7 @@
len = dns_string(name, dp, MAXDNAME);
if(len < 0)
- return(NULL);
+ return(0);
dp += len;