Module Name: src Committed By: christos Date: Fri May 21 21:07:37 UTC 2021
Modified Files: src/external/mpl/dhcp/dist/relay: dhcrelay.c Log Message: Add missing call to libdhcp_callbacks_register(). Should stop dhcrelay() crashing when accessing *libdhcp_callbacks.local_port. (from mrg@) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/mpl/dhcp/dist/relay/dhcrelay.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/mpl/dhcp/dist/relay/dhcrelay.c diff -u src/external/mpl/dhcp/dist/relay/dhcrelay.c:1.3 src/external/mpl/dhcp/dist/relay/dhcrelay.c:1.4 --- src/external/mpl/dhcp/dist/relay/dhcrelay.c:1.3 Mon Aug 3 17:10:57 2020 +++ src/external/mpl/dhcp/dist/relay/dhcrelay.c Fri May 21 17:07:37 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: dhcrelay.c,v 1.3 2020/08/03 21:10:57 christos Exp $ */ +/* $NetBSD: dhcrelay.c,v 1.4 2021/05/21 21:07:37 christos Exp $ */ /* dhcrelay.c @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: dhcrelay.c,v 1.3 2020/08/03 21:10:57 christos Exp $"); +__RCSID("$NetBSD: dhcrelay.c,v 1.4 2021/05/21 21:07:37 christos Exp $"); #include "dhcpd.h" #include <syslog.h> @@ -264,7 +264,7 @@ char *progname; */ #include <sys/cdefs.h> -__RCSID("$NetBSD: dhcrelay.c,v 1.3 2020/08/03 21:10:57 christos Exp $"); +__RCSID("$NetBSD: dhcrelay.c,v 1.4 2021/05/21 21:07:37 christos Exp $"); static const char use_noarg[] = "No argument for command: %s"; #ifdef RELAY_PORT static const char use_port_defined[] = "Port already set, %s inappropriate"; @@ -317,6 +317,8 @@ main(int argc, char **argv) { int local_family_set = 0; #endif + libdhcp_callbacks_register(&dhcrelay_callbacks); + #ifdef OLD_LOG_NAME progname = "dhcrelay"; #else