Mercurial > hg > dhcpcd
changeset 4558:a4d9b0152582 draft
Fix prior
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 22 Jul 2019 11:38:10 +0100 |
| parents | 94948262f9d3 |
| children | c9da6ac27892 |
| files | src/if-options.c |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if-options.c Mon Jul 22 11:20:27 2019 +0100 +++ b/src/if-options.c Mon Jul 22 11:38:10 2019 +0100 @@ -719,6 +719,9 @@ if (s == 0) { ifo->script = NULL; break; + } else if (s == -1) { + logerr("%s: script", __func__); + return -1; } dl = (size_t)s; if (s == -1 || (ifo->script = malloc(dl)) == NULL) { @@ -1868,7 +1871,7 @@ ifo->vivco_len + 1, sizeof(*ifo->vivco)); if (vivco == NULL) { logerr( __func__); - fre(np); + free(np); return -1; } ifo->vivco = vivco;
