Fossil SCM

Remove extraneous printf() statements from the IPv6 logic in the unix CGI server code.

drh 2015-04-09 23:22 UTC ipv6-server
Commit 2d9d276b7fc94e0e21d650b073831580f11a942f
1 file changed -3
-3
--- src/cgi.c
+++ src/cgi.c
@@ -1729,17 +1729,14 @@
17291729
17301730
while( iPort<=mxPort ){
17311731
memset(&inaddr, 0, sizeof(inaddr));
17321732
inaddr.sin6_family = AF_INET6;
17331733
if( zIpAddr ){
1734
- printf("zIpAddr: %s", zIpAddr);
1735
- printf("iPort: %d", iPort);
17361734
/* check valid ipv6 address */
17371735
if (inet_pton(AF_INET6, zIpAddr, &(inaddr.sin6_addr)) < 1) {
17381736
/* maybe ipv4 string so try mixed ipv4 notation*/
17391737
sqlite3_snprintf(sizeof(ip), ip, "::FFFF:%s", zIpAddr);
1740
- printf("zIpAddr: %s", ip);
17411738
if (inet_pton(AF_INET6, ip, &(inaddr.sin6_addr)) == -1){
17421739
fossil_fatal("not a valid IP address: %s", zIpAddr);
17431740
}
17441741
}
17451742
}else if( flags & HTTP_SERVER_LOCALHOST ){
17461743
--- src/cgi.c
+++ src/cgi.c
@@ -1729,17 +1729,14 @@
1729
1730 while( iPort<=mxPort ){
1731 memset(&inaddr, 0, sizeof(inaddr));
1732 inaddr.sin6_family = AF_INET6;
1733 if( zIpAddr ){
1734 printf("zIpAddr: %s", zIpAddr);
1735 printf("iPort: %d", iPort);
1736 /* check valid ipv6 address */
1737 if (inet_pton(AF_INET6, zIpAddr, &(inaddr.sin6_addr)) < 1) {
1738 /* maybe ipv4 string so try mixed ipv4 notation*/
1739 sqlite3_snprintf(sizeof(ip), ip, "::FFFF:%s", zIpAddr);
1740 printf("zIpAddr: %s", ip);
1741 if (inet_pton(AF_INET6, ip, &(inaddr.sin6_addr)) == -1){
1742 fossil_fatal("not a valid IP address: %s", zIpAddr);
1743 }
1744 }
1745 }else if( flags & HTTP_SERVER_LOCALHOST ){
1746
--- src/cgi.c
+++ src/cgi.c
@@ -1729,17 +1729,14 @@
1729
1730 while( iPort<=mxPort ){
1731 memset(&inaddr, 0, sizeof(inaddr));
1732 inaddr.sin6_family = AF_INET6;
1733 if( zIpAddr ){
 
 
1734 /* check valid ipv6 address */
1735 if (inet_pton(AF_INET6, zIpAddr, &(inaddr.sin6_addr)) < 1) {
1736 /* maybe ipv4 string so try mixed ipv4 notation*/
1737 sqlite3_snprintf(sizeof(ip), ip, "::FFFF:%s", zIpAddr);
 
1738 if (inet_pton(AF_INET6, ip, &(inaddr.sin6_addr)) == -1){
1739 fossil_fatal("not a valid IP address: %s", zIpAddr);
1740 }
1741 }
1742 }else if( flags & HTTP_SERVER_LOCALHOST ){
1743

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button