=== modified file 'helpers/ntlm_auth/fakeauth/fakeauth_auth.c'
--- helpers/ntlm_auth/fakeauth/fakeauth_auth.c	2008-07-09 13:15:32 +0000
+++ helpers/ntlm_auth/fakeauth/fakeauth_auth.c	2008-07-15 12:41:38 +0000
@@ -299,9 +299,12 @@
     buf += (s - 1);
     *buf++ = '\\';		/* Using \ is more consistent with MS-proxy */
 
-    p = ntlmGetString(&auth->hdr, &auth->user, auth->flags);
+    if( (p = ntlmGetString(&auth->hdr, &auth->user, auth->flags)) == NULL)
+        return 1;
+
     if ((s = strlen(p) + 1) >= size)
 	return 1;
+
     while (*p)
 	*buf++ = (*p++);	//tolower
 


