You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_ftp-commits@incubator.apache.org by wr...@apache.org on 2007/02/07 20:03:43 UTC
svn commit: r504667 - /incubator/mod_ftp/trunk/modules/ftp/mod_ftp.c
Author: wrowe
Date: Wed Feb 7 12:03:42 2007
New Revision: 504667
URL: http://svn.apache.org/viewvc?view=rev&rev=504667
Log:
Size appropriately for the inet_pton() invocations below (it's nothing but
a temp placeholder to test the addr syntax).
Modified:
incubator/mod_ftp/trunk/modules/ftp/mod_ftp.c
Modified: incubator/mod_ftp/trunk/modules/ftp/mod_ftp.c
URL: http://svn.apache.org/viewvc/incubator/mod_ftp/trunk/modules/ftp/mod_ftp.c?view=diff&rev=504667&r1=504666&r2=504667
==============================================================================
--- incubator/mod_ftp/trunk/modules/ftp/mod_ftp.c (original)
+++ incubator/mod_ftp/trunk/modules/ftp/mod_ftp.c Wed Feb 7 12:03:42 2007
@@ -618,9 +618,13 @@
static const char *ftp_set_pasv_bindaddr(cmd_parms *cmd, void *dummy,
const char *addr)
{
- apr_uint32_t ipaddr;
ftp_server_config *fsc =
ftp_get_module_config(cmd->server->module_config);
+#if APR_HAVE_IPV6
+ struct in6_addr ipaddr;
+#else
+ struct in_addr ipaddr;
+#endif
if ((ftp_inet_pton(AF_INET, addr, &ipaddr)) == 1) {
fsc->pasv_bindfamily = APR_INET;