mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 12:00:00 -04:00
source region was not consumed in fromwire_in_nsap() (RT #73)
This commit is contained in:
parent
afda57a68e
commit
ea5bd6a950
1 changed files with 4 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap_22.c,v 1.13 2000/03/17 19:35:25 gson Exp $ */
|
||||
/* $Id: nsap_22.c,v 1.14 2000/03/20 18:03:53 gson Exp $ */
|
||||
|
||||
/* Reviewed: Fri Mar 17 10:41:07 PST 2000 by gson */
|
||||
|
||||
|
|
@ -112,7 +112,9 @@ fromwire_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||
if (region.length < 1)
|
||||
return (DNS_R_UNEXPECTEDEND);
|
||||
|
||||
return (mem_tobuffer(target, region.base, region.length));
|
||||
RETERR(mem_tobuffer(target, region.base, region.length));
|
||||
isc_buffer_forward(source, region.length);
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static inline isc_result_t
|
||||
|
|
|
|||
Loading…
Reference in a new issue