Commit dbb3bb34 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Fix dereference of a null pointer.

`if_conf` can be null if the allocation fails in line 520.
parent 517c8743
......@@ -657,7 +657,7 @@ parse_anonymous_ifconf(int c, gnc_t gnc, void *closure,
return c;
error:
if(if_conf->ifname)
if(if_conf)
free(if_conf->ifname);
free(if_conf);
return -2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment