#
-# Copyright (C) 2009-2012 OpenWrt.org
+# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=mini_snmpd
PKG_VERSION:=1.2b
-PKG_RELEASE:=7
+PKG_RELEASE:=8
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://members.aon.at/linuxfreak/linux/
--- /dev/null
+--- a/mini_snmpd.c
++++ b/mini_snmpd.c
+@@ -443,7 +443,7 @@ int main(int argc, char *argv[])
+ /* Store the starting time since we need it for MIB updates */
+ if (gettimeofday(&tv_last, NULL) == -1) {
+ memset(&tv_last, 0, sizeof (tv_last));
+- memset(&tv_sleep, 0, sizeof (&tv_sleep));
++ memset(&tv_sleep, 0, sizeof (tv_sleep));
+ } else {
+ tv_sleep.tv_sec = g_timeout / 100;
+ tv_sleep.tv_usec = (g_timeout % 100) * 10000;