Browse Source

Merge pull request #18069 from pprindeville/isc-dhcp-dont-leak-mktemp-files

isc-dhcp: don't leak mktemp files
lilik-openwrt-22.03
Philip Prindeville 3 years ago
committed by GitHub
parent
commit
0172063b0a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      net/isc-dhcp/Makefile
  2. +4
    -4
      net/isc-dhcp/files/dhcpd.init

+ 1
- 1
net/isc-dhcp/Makefile View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=isc-dhcp
UPSTREAM_NAME:=dhcp
PKG_VERSION:=4.4.1
PKG_RELEASE:=19
PKG_RELEASE:=20
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE


+ 4
- 4
net/isc-dhcp/files/dhcpd.init View File

@ -16,8 +16,6 @@ conf_local_file=$dyndir/named.conf.local
session_key_name=local-ddns
session_key_file=/var/run/named/session.key
dyn_file=$(mktemp -u /tmp/dhcpd.XXXXXX)
time2seconds() {
local timestring=$1
local multiplier number suffix
@ -548,6 +546,8 @@ start_service() {
else
. /lib/functions/network.sh
local dyn_file=$(mktemp -u /tmp/dhcpd.XXXXXX)
config_load dhcp
local rfc1918_nets=""
@ -584,10 +584,10 @@ EOF
if [ $dynamicdns -eq 1 ]; then
nsupdate -l -v $dyn_file
rm -f $dyn_file
fi
rm -f $dyn_file
[ -z "$dhcp_ifs" ] && return 0
fi


Loading…
Cancel
Save