summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/src
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2005-03-10 19:41:24 +0000
committerderaadt <deraadt@openbsd.org>2005-03-10 19:41:24 +0000
commitab2b1735e2d490f94a91609ffc280b5a95cfab42 (patch)
tree6a0196ac206736632e945a6f5d0ee3b3cb34e089 /usr.sbin/httpd/src
parentRecognize 7447A processor, as found in the Mac mini; print (diff)
downloadwireguard-openbsd-ab2b1735e2d490f94a91609ffc280b5a95cfab42.tar.xz
wireguard-openbsd-ab2b1735e2d490f94a91609ffc280b5a95cfab42.zip
Write this in real C, not some bullshit GNU extension that other compilers
do no understand.
Diffstat (limited to 'usr.sbin/httpd/src')
-rw-r--r--usr.sbin/httpd/src/modules/keynote/mod_keynote.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/modules/keynote/mod_keynote.c b/usr.sbin/httpd/src/modules/keynote/mod_keynote.c
index e21ec7e2153..892da6adfdb 100644
--- a/usr.sbin/httpd/src/modules/keynote/mod_keynote.c
+++ b/usr.sbin/httpd/src/modules/keynote/mod_keynote.c
@@ -705,6 +705,8 @@ check_keynote_assertions(request_rec *r)
/* Add username as a principal too. */
if (r->connection->user != NULL) {
+ int n;
+
authLen = strlen(r->connection->user) + 1 + strlen("username:");
pwauth = calloc(authLen, sizeof(char));
if (pwauth == NULL) {
@@ -712,7 +714,7 @@ check_keynote_assertions(request_rec *r)
goto done;
}
- int n = snprintf(pwauth, authLen, "username:%s",
+ n = snprintf(pwauth, authLen, "username:%s",
r->connection->user);
if (n == -1 || n >= authLen) {
rval = FORBIDDEN;