]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
INSIST ipnum6 != NULL
authorMark Andrews <marka@isc.org>
Wed, 14 Feb 2018 08:31:16 +0000 (19:31 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 05:27:05 +0000 (16:27 +1100)
lib/dns/geoip.c
util/copyrights

index 47467265ac7c16a5b9534c7d4967dbda686a1974..ddf2e58934060fe987ecfd182d74af17fa37af09 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2015  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2013-2015, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -196,10 +196,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;
index df13abee845dad3766f1dbdbd673c89b51ff0924..21c6d385417fbf274c98c08030816f7eab0ba3d4 100644 (file)
 ./lib/dns/gen-unix.h                           C       1999,2000,2001,2004,2005,2007,2009
 ./lib/dns/gen-win32.h                          C       1999,2000,2001,2004,2005,2006,2007,2009,2014
 ./lib/dns/gen.c                                        C       1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2012,2013,2014,2015,2017
-./lib/dns/geoip.c                              C       2013,2014,2015
+./lib/dns/geoip.c                              C       2013,2014,2015,2018
 ./lib/dns/gssapi_link.c                                C       2000,2001,2002,2004,2005,2006,2007,2008,2009,2011,2012,2013,2014,2015
 ./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