Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
utils.c: return NULL when getenv(...) fails in get_http_auth() function
rilysh committed 2 years ago
commit 482b2998cb8c5441a55fc47e49b6979096924594
parent 4d261cc900fc2ccbf37237003f104dbde7607f43
1 file changed +1 -1
modified libpkg/utils.c
@@ -1016,7 +1016,7 @@ get_http_auth(void)
{
	const char *str = getenv("HTTP_AUTH");
	if (str == NULL)
-
		return (false);
+
		return (NULL);
	if ((str = strchr(str, ':')) == NULL) {
		pkg_emit_error("malformed HTTP_AUTH");
		return (NULL);