cvs: php4 /ext/ftp ftp.c
| From: | Stefan Esser | Date: | Fri, 04 Oct 2002 22:20:10 +0000 |
| Subject: | cvs: php4 /ext/ftp ftp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14558@lists.php.net to get a copy of this message | ||
sesser Fri Oct 4 18:20:10 2002 EDT
Modified files:
/php4/ext/ftp ftp.c
Log:
some FTP servers return 32bit port numbers.
Index: php4/ext/ftp/ftp.c
diff -u php4/ext/ftp/ftp.c:1.66 php4/ext/ftp/ftp.c:1.67
--- php4/ext/ftp/ftp.c:1.66 Thu Oct 3 08:16:44 2002
+++ php4/ext/ftp/ftp.c Fri Oct 4 18:20:08 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ftp.c,v 1.66 2002/10/03 12:16:44 sesser Exp $ */
+/* $Id: ftp.c,v 1.67 2002/10/04 22:20:08 sesser Exp $ */
#include "php.h"
@@ -602,7 +602,7 @@
n++;
}
- sin6->sin6_port = htons((unsigned short) strtol(ptr, &endptr, 10));
+ sin6->sin6_port = htons((unsigned short) strtoul(ptr, &endptr, 10));
if (ptr == endptr || *endptr != delimiter)
return 0;