commit | f89dc4e127eea6addea6a7b45eb96da8c1053ba4 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Mon Apr 25 13:00:10 2016 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Apr 29 13:01:06 2016 +0200 |
tree | 6e2d49e102b5de0fb0b72b64f1fda28e6634ad15 | |
parent | b29ff1da554a2654cc593ea243e29cd7883c92da [diff] |
queue_new(): fix NULL dereference on allocation failure Coverity complains about a 'Dereference before null check' on *queue. So, push the NULL check further up. Though I doubt that 'return EOF' is the proper way to handle allocation failure, this patch is only about the NULL dereference. Fixes: CID#57918