diff options
author | Ted Lemon <source@isc.org> | 2002-02-19 19:23:31 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2002-02-19 19:23:31 +0000 |
commit | 8192f3699ce02ccc5b70dbee16c18ea8280f7c6e (patch) | |
tree | 2441d92b905797fb6f48478440ce8d07b3e3db73 /minires | |
parent | 2b1eabe76bc0fb0096771b184c0ce409622619d6 (diff) | |
download | isc-dhcp-8192f3699ce02ccc5b70dbee16c18ea8280f7c6e.tar.gz |
Fix return codes for ns_parserr (fixes arm32 compile)
Diffstat (limited to 'minires')
-rw-r--r-- | minires/ns_verify.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/minires/ns_verify.c b/minires/ns_verify.c index 1408da6b..306226c1 100644 --- a/minires/ns_verify.c +++ b/minires/ns_verify.c @@ -16,7 +16,7 @@ */ #ifndef lint -static const char rcsid[] = "$Id: ns_verify.c,v 1.5.2.1 2001/05/17 20:47:34 mellon Exp $"; +static const char rcsid[] = "$Id: ns_verify.c,v 1.5.2.2 2002/02/19 19:23:31 mellon Exp $"; #endif #define time(x) trace_mr_time (x) @@ -60,6 +60,7 @@ ns_find_tsig(u_char *msg, u_char *eom) { HEADER *hp = (HEADER *)msg; int n, type; u_char *cp = msg, *start; + isc_result_t status; if (msg == NULL || eom == NULL || msg > eom) return (NULL); @@ -72,23 +73,23 @@ ns_find_tsig(u_char *msg, u_char *eom) { cp += HFIXEDSZ; - n = ns_skiprr(cp, eom, ns_s_qd, ntohs(hp->qdcount)); - if (n < 0) + status = ns_skiprr(cp, eom, ns_s_qd, ntohs(hp->qdcount), &n); + if (status != ISC_R_SUCCESS) return (NULL); cp += n; - n = ns_skiprr(cp, eom, ns_s_an, ntohs(hp->ancount)); - if (n < 0) + status = ns_skiprr(cp, eom, ns_s_an, ntohs(hp->ancount), &n); + if (status != ISC_R_SUCCESS) return (NULL); cp += n; - n = ns_skiprr(cp, eom, ns_s_ns, ntohs(hp->nscount)); - if (n < 0) + status = ns_skiprr(cp, eom, ns_s_ns, ntohs(hp->nscount), &n); + if (status != ISC_R_SUCCESS) return (NULL); cp += n; - n = ns_skiprr(cp, eom, ns_s_ar, ntohs(hp->arcount) - 1); - if (n < 0) + status = ns_skiprr(cp, eom, ns_s_ar, ntohs(hp->arcount) - 1, &n); + if (status != ISC_R_SUCCESS) return (NULL); cp += n; |