]> git.pld-linux.org Git - packages/ntop.git/blame - ntop-http_c.patch
Release 9 (by relup.sh)
[packages/ntop.git] / ntop-http_c.patch
CommitLineData
4b11e15f
JR
1diff -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
This page took 0.025624 seconds and 4 git commands to generate.