Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist/src prevent coredump when state == ...



details:   https://anonhg.NetBSD.org/src/rev/c1f893573239
branches:  trunk
changeset: 744189:c1f893573239
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 26 22:57:52 2020 +0000

description:
prevent coredump when state == NULL

diffstat:

 external/bsd/dhcpcd/dist/src/script.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d2c2604628bb -r c1f893573239 external/bsd/dhcpcd/dist/src/script.c
--- a/external/bsd/dhcpcd/dist/src/script.c     Sun Jan 26 22:34:17 2020 +0000
+++ b/external/bsd/dhcpcd/dist/src/script.c     Sun Jan 26 22:57:52 2020 +0000
@@ -453,7 +453,7 @@
 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;
        }



Home | Main Index | Thread Index | Old Index