diff options
author | Stefan Esser <sesser@php.net> | 2002-10-04 22:20:08 +0000 |
---|---|---|
committer | Stefan Esser <sesser@php.net> | 2002-10-04 22:20:08 +0000 |
commit | 4368b8e4acf5d54715fa5371b97b38b78c5873c4 (patch) | |
tree | ddb1fd935de2daba95a6e5895ebc048a1e48907e | |
parent | 3340e82508ee3cb7a3fabd4b2cd5eaeb5d75b8fe (diff) | |
download | php-git-4368b8e4acf5d54715fa5371b97b38b78c5873c4.tar.gz |
some FTP servers return 32bit port numbers.
-rw-r--r-- | ext/ftp/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index f81ae75814..65d0a6d7fe 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -602,7 +602,7 @@ ftp_pasv(ftpbuf_t *ftp, int pasv) 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; |