--- ntop-3.3.10.org/http.c 2009-09-13 14:23:48.895204786 +0530 +++ ntop-3.3.10/http.c 2009-09-13 14:45:35.603204376 +0530 @@ -3439,6 +3439,9 @@ strncpy(thePw, &outBuffer[i+1], thePwLen-1)[thePwLen-1] = '\0'; } + if(user == NULL) + user = ""; + if(strlen(user) >= sizeof(theHttpUser)) user[sizeof(theHttpUser)-1] = '\0'; strcpy(theHttpUser, user);