summaryrefslogtreecommitdiff
path: root/client/dhc6.c
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2015-09-23 15:24:32 -0400
committerThomas Markwalder <tmark@isc.org>2015-09-23 15:24:32 -0400
commit88c3ff5d09699150cc1ebae2fd861fbf2684d4a1 (patch)
tree6145f371ed841cd19ab84f548e5291bd47dc3595 /client/dhc6.c
parentf10cbbface262ba51394b2c8ccf402addf7bd6b1 (diff)
downloadisc-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.c4
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));