Commit 7d375efa authored by Mark Andrews's avatar Mark Andrews

INSIST ipnum6 != NULL

parent 898d7e99
/*
* Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2013-2016, 2018 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -189,10 +189,12 @@ set_state(unsigned int family, isc_uint32_t ipnum, const geoipv6_t *ipnum6,
clean_state(state);
#endif
if (family == AF_INET)
if (family == AF_INET) {
state->ipnum = ipnum;
else
} else {
INSIST(ipnum6 != NULL);
state->ipnum6 = *ipnum6;
}
state->family = family;
state->subtype = subtype;
......
......@@ -3336,7 +3336,7 @@
./lib/dns/gen-unix.h C 1999,2000,2001,2004,2005,2007,2009,2016
./lib/dns/gen-win32.h C 1999,2000,2001,2004,2005,2006,2007,2009,2014,2016
./lib/dns/gen.c C 1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2012,2013,2014,2015,2016,2017
./lib/dns/geoip.c C 2013,2014,2015,2016
./lib/dns/geoip.c C 2013,2014,2015,2016,2018
./lib/dns/gssapi_link.c C 2000,2001,2002,2004,2005,2006,2007,2008,2009,2011,2012,2013,2014,2015,2016
./lib/dns/gssapictx.c C 2000,2001,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017
./lib/dns/hmac_link.c C.NAI 1999,2000,2001,2002,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
......
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