cookie: add an assert
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 26 Oct 2012 13:15:03 +0000 (15:15 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 26 Oct 2012 13:15:03 +0000 (15:15 +0200)
Coverity doesn't understand the olsr_exit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/olsr_cookie.c

index 1548db9..dfd618a 100644 (file)
@@ -231,6 +231,7 @@ olsr_cookie_malloc(struct olsr_cookie_info *ci)
       olsr_syslog(OLSR_LOG_ERR, "olsrd: out of memory!: %s\n", err_msg);
       olsr_exit(ci->ci_name, EXIT_FAILURE);
     }
+    assert(ptr);
   } else {
 
     /*