Changeset 2731
- Timestamp:
- 06/06/07 17:42:32 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freewrt/package/busybox/patches/310-passwd_access.patch
r1904 r2731 1 diff -Nur busybox-1.4.1.orig/networking/httpd.c busybox-1.4.1/networking/httpd.c 2 --- busybox-1.4.1.orig/networking/httpd.c 2007-01-24 22:34:34.000000000 +0100 3 +++ busybox-1.4.1/networking/httpd.c 2007-02-05 11:05:12.000000000 +0100 4 @@ -1402,12 +1402,26 @@ 1 --- busybox-1.4.2/networking/httpd.c.orig Wed Jun 6 15:40:06 2007 2 +++ busybox-1.4.2/networking/httpd.c Wed Jun 6 15:41:11 2007 3 @@ -1404,6 +1404,8 @@ static int checkPerm(const char *path, c 5 4 if (ENABLE_FEATURE_HTTPD_AUTH_MD5) { 6 5 char *cipher; … … 11 10 if (strncmp(p, request, u-request) != 0) { 12 11 /* user uncompared */ 12 @@ -1410,6 +1412,18 @@ static int checkPerm(const char *path, c 13 13 continue; 14 14 } … … 29 29 pp[3] == '$' && pp[4]) { 30 30 pp++; 31 @@ -1506,6 +1520,10 @@ 32 sendHeaders(HTTP_NOT_IMPLEMENTED); 33 break; 31 @@ -1418,6 +1432,10 @@ static int checkPerm(const char *path, c 32 goto set_remoteuser_var; /* Ok */ 33 /* unauthorized */ 34 continue; 35 + } 36 + if (ppnew) { 37 + free(ppnew); 38 + ppnew = NULL; 39 } 34 40 } 35 + if (ppnew) { 36 + free(ppnew); 37 + ppnew = NULL; 38 + } 39 } 40 #else 41 if (strcasecmp(buf, request_GET) != 0) { 41


