]> git.pld-linux.org Git - packages/ntop.git/blob - ntop-http_c.patch
Release 9 (by relup.sh)
[packages/ntop.git] / ntop-http_c.patch
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 @@
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  
This page took 0.112321 seconds and 3 git commands to generate.