Module Name: src Committed By: christos Date: Sun Jan 26 22:57:52 UTC 2020
Modified Files: src/external/bsd/dhcpcd/dist/src: script.c Log Message: prevent coredump when state == NULL To generate a diff of this commit: cvs rdiff -u -r1.1.1.12 -r1.2 src/external/bsd/dhcpcd/dist/src/script.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/dhcpcd/dist/src/script.c diff -u src/external/bsd/dhcpcd/dist/src/script.c:1.1.1.12 src/external/bsd/dhcpcd/dist/src/script.c:1.2 --- src/external/bsd/dhcpcd/dist/src/script.c:1.1.1.12 Wed Nov 13 05:49:20 2019 +++ src/external/bsd/dhcpcd/dist/src/script.c Sun Jan 26 17:57:52 2020 @@ -453,7 +453,7 @@ make_env(const struct interface *ifp, co dumplease: #ifdef INET #ifdef IPV4LL - if (protocol == PROTO_IPV4LL) { + if (protocol == PROTO_IPV4LL && istate) { if (ipv4ll_env(fp, istate->down ? "old" : "new", ifp) == -1) goto eexit; }