]>
Commit | Line | Data |
---|---|---|
4b11e15f JR |
1 | diff -urN ntop-5.0.orig/httpd.c ntop-5.0/httpd.c |
2 | --- ntop-5.0.orig/httpd.c 2012-07-18 01:14:33.000000000 +0200 | |
3 | +++ ntop-5.0/httpd.c 2012-07-20 12:15:57.306231889 +0200 | |
4 | @@ -3321,6 +3321,9 @@ | |
8db4b37a ER |
5 | strncpy(thePw, &outBuffer[i+1], thePwLen-1)[thePwLen-1] = '\0'; |
6 | } | |
7 | ||
8 | + if(user == NULL) | |
9 | + user = ""; | |
10 | + | |
11 | if(strlen(user) >= sizeof(theHttpUser)) user[sizeof(theHttpUser)-1] = '\0'; | |
12 | strcpy(theHttpUser, user); | |
13 |