httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
Subject [mod_ftp] Should ftp_connection->pbsz be an int or a long?
Date Thu, 17 Sep 2009 22:08:19 GMT
I compiled mod_ftp trunk on RHEL5 64 Bits. It warned about

    fc->pbsz == LONG_MAX

ftp_commands.c:1695: warning: comparison is always false due to limited
range of data type

The pbsz member is declared as being an int, but set by

    fc->pbsz = strtol(arg, &endp, 10);

and then compared against LONG_MAX. On the other hand shortly after it
is formatted to a string with %d.

I can't really see, where the pbsz is actually used. It is set by the
PBSZ command, but it seems it is not used afterwards.



View raw message