mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Add a NULL check.
This commit is contained in:
parent
27efdcd869
commit
2e0ef629ee
1 changed files with 2 additions and 0 deletions
|
|
@ -532,6 +532,8 @@ main(int argc, char *argv[])
|
|||
|
||||
if (bflag == 0) {
|
||||
pe = calloc(1, sizeof(*pe));
|
||||
if (pe == NULL)
|
||||
err(1, "malloc failed");
|
||||
*pe = (struct peer) {
|
||||
.pe_serv = "syslog"
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue