diff options
author | Thomas Markwalder <tmark@isc.org> | 2015-09-23 15:24:32 -0400 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2015-09-23 15:24:32 -0400 |
commit | 88c3ff5d09699150cc1ebae2fd861fbf2684d4a1 (patch) | |
tree | 6145f371ed841cd19ab84f548e5291bd47dc3595 /client/dhc6.c | |
parent | f10cbbface262ba51394b2c8ccf402addf7bd6b1 (diff) | |
download | isc-dhcp-88c3ff5d09699150cc1ebae2fd861fbf2684d4a1.tar.gz |
[master] Corrected several potential null references identified by static analysis
Merges branch rt40754
Diffstat (limited to 'client/dhc6.c')
-rw-r--r-- | client/dhc6.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/dhc6.c b/client/dhc6.c index 093271f9..41c27f46 100644 --- a/client/dhc6.c +++ b/client/dhc6.c @@ -469,6 +469,10 @@ dhc6_dup_ia(struct dhc6_ia *ia, const char *file, int line) struct dhc6_addr **insert_addr, *addr; copy = dmalloc(sizeof(*ia), file, line); + if (copy == NULL) { + log_error("Out of memory for v6 duplicate IA structure."); + return NULL; + } memcpy(copy->iaid, ia->iaid, sizeof(copy->iaid)); |