Module Name:    src
Committed By:   mrg
Date:           Sat Apr 18 07:38:40 UTC 2009

Modified Files:
        src/libexec/httpd: auth-bozo.c

Log Message:
return a value when the function wants to.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/libexec/httpd/auth-bozo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/httpd/auth-bozo.c
diff -u src/libexec/httpd/auth-bozo.c:1.5 src/libexec/httpd/auth-bozo.c:1.6
--- src/libexec/httpd/auth-bozo.c:1.5	Sat Apr 18 07:28:24 2009
+++ src/libexec/httpd/auth-bozo.c	Sat Apr 18 07:38:40 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: auth-bozo.c,v 1.5 2009/04/18 07:28:24 mrg Exp $	*/
+/*	$NetBSD: auth-bozo.c,v 1.6 2009/04/18 07:38:40 mrg Exp $	*/
 
 /*	$eterna: auth-bozo.c,v 1.12 2009/04/17 22:52:19 mrg Exp $	*/
 
@@ -37,6 +37,7 @@
 #include <sys/param.h>
 
 #include <string.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 #include "bozohttpd.h"
@@ -77,7 +78,7 @@
 		debug((DEBUG_NORMAL,
 		    "auth_check realm `%s' dir `%s' authfile `%s' missing",
 		    dir, file, authfile));
-		return;
+		return 0;
 	}
 	if ((fp = fopen(authfile, "r")) == NULL)
 		return http_error(403, request, "no permission to open "
@@ -102,7 +103,7 @@
 			if (strcmp(crypt(request->hr_authpass, pass), pass))
 				break;
 			fclose(fp);
-			return;
+			return 0;
 		}
 	}
 	fclose(fp);

Reply via email to