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/d67ca47beff9
branches:  trunk
changeset: 968727:d67ca47beff9
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 9d97018ad912 -r d67ca47beff9 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