Author: spetreolle
Date: Sat Dec 12 12:02:37 2015
New Revision: 70327
URL:
http://svn.reactos.org/svn/reactos?rev=70327&view=rev
Log:
Fixing several missing va_end issues in DHCP.
Patch by Victor Martinez.
CORE-10631
Modified:
trunk/reactos/dll/win32/dhcpcsvc/dhcp/util.c
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/util.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/ut…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/util.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/util.c [iso-8859-1] Sat Dec 12 12:02:37 2015
@@ -17,6 +17,8 @@
ret = _vsnprintf( buf, sizeof(buf), format, arg_begin );
+ va_end( format );
+
DPRINT("NOTE: %s\n", buf);
return ret;
@@ -29,6 +31,8 @@
va_start( arg_begin, format );
ret = _vsnprintf( buf, sizeof(buf), format, arg_begin );
+
+ va_end( format );
DPRINT("DEBUG: %s\n", buf);
@@ -43,6 +47,8 @@
ret = _vsnprintf( buf, sizeof(buf), format, arg_begin );
+ va_end( format );
+
DPRINT("WARN: %s\n", buf);
return ret;
@@ -56,6 +62,8 @@
ret = _vsnprintf( buf, sizeof(buf), format, arg_begin );
+ va_end( format );
+
DPRINT("WARNING: %s\n", buf);
return ret;
@@ -67,6 +75,8 @@
va_start( arg_begin, format );
_vsnprintf( buf, sizeof(buf), format, arg_begin );
+
+ va_end( format );
DPRINT1("ERROR: %s\n", buf);
}