aboutsummaryrefslogtreecommitdiff
path: root/src/Authorisation.c
diff options
context:
space:
mode:
authorgoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-19 07:49:27 +0000
committergoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-19 07:49:27 +0000
commit951e8e29cc8a8993f6923074798d49198d1e30ab (patch)
tree92860f72bcea87634120669b6cfb652498a29eed /src/Authorisation.c
parente23063a8ac86291d2b640c1cac8b2dc600a3ef8c (diff)
Null terminate user string even if no user authentication.
Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@48 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Authorisation.c')
-rw-r--r--src/Authorisation.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Authorisation.c b/src/Authorisation.c
index 92a6a27..a6ca2e1 100644
--- a/src/Authorisation.c
+++ b/src/Authorisation.c
@@ -180,6 +180,12 @@ int HTTP_AuthenticateBasic(httpRequest *request,
authorised = 0;
+ /* Null terminate the user string */
+ if(user && length > 0)
+ {
+ *user = 0;
+ }
+
/* Ok, there's an authentication string here. */
if(value)
{