Commit 0751254c authored by Mark Andrews's avatar Mark Andrews
Browse files

return DNS_R_BADDOTTEDQUAD on isc_inet_aton failure

parent b8ea456f
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a_1.c,v 1.10 1999/02/02 01:17:48 halley Exp $ */
/* $Id: a_1.c,v 1.11 1999/02/09 07:58:57 marka Exp $ */
#ifndef RDATA_IN_1_A_1_H
#define RDATA_IN_1_A_1_H
......@@ -47,7 +47,7 @@ fromtext_in_a(dns_rdataclass_t class, dns_rdatatype_t type,
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
if (isc_inet_aton(token.value.as_pointer, &addr) != 1)
return (DNS_R_UNEXPECTED);
return (DNS_R_BADDOTTEDQUAD);
isc_buffer_available(target, &region);
if (region.length < 4)
return (DNS_R_NOSPACE);
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a_1.h,v 1.10 1999/02/02 01:17:48 halley Exp $ */
/* $Id: a_1.h,v 1.11 1999/02/09 07:58:57 marka Exp $ */
#ifndef RDATA_IN_1_A_1_H
#define RDATA_IN_1_A_1_H
......@@ -47,7 +47,7 @@ fromtext_in_a(dns_rdataclass_t class, dns_rdatatype_t type,
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
if (isc_inet_aton(token.value.as_pointer, &addr) != 1)
return (DNS_R_UNEXPECTED);
return (DNS_R_BADDOTTEDQUAD);
isc_buffer_available(target, &region);
if (region.length < 4)
return (DNS_R_NOSPACE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment