Commit 170ac28e authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Simple fix for possibly unterminated REG_SZ data


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95286 13f79535-47bb-0310-9956-ffa450edef68
parent f587bdf3
Loading
Loading
Loading
Loading
+3 −1
Changes for server/mpm/winnt/registry.c: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -211,7 +211,9 @@ apr_status_t ap_registry_get_value(apr_pool_t *p, const char *key, const char *n
    if (rv != ERROR_SUCCESS)
	return_error(rv);

    *ppValue = apr_palloc(p, nSize);
    *ppValue = apr_palloc(p, nSize + 1);
    (*ppValue)[nSize] = '\0';

    rv = RegQueryValueEx(hKey, 
			 name,		/* key name */
			 NULL,		/* reserved */