You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by sa...@atropos.c2.org on 1996/02/26 22:12:02 UTC

missing_htons.patch

	Patch to make the proxy work on machines which require htons()
(htons was everywhere but this one location, it seems.)

	I've put it in /httpd/incoming. Please move & number
appropriately, thanks.


From: sameer@c2.org (Sameer Parekh)
Subject: Fix missing htons() in mod_proxy
Affects: mod_proxy.c
Comments: There was a missing htons(port) in mod_proxy.c

*** apache_1.1b0+ak/src/mod_proxy.c	Sun Feb 25 14:33:24 1996
--- apache/src/mod_proxy.c	Mon Feb 26 13:05:19 1996
***************
*** 2480,2486 ****
  	    *(p++) = '\0';
  	    port = atoi(p);
  	}
! 	server.sin_port = port;
  	err = host2addr(host, &server.sin_addr);
  	if (err != NULL) return proxyerror(r, err); /* give up */
      }
--- 2480,2486 ----
  	    *(p++) = '\0';
  	    port = atoi(p);
  	}
! 	server.sin_port = htons(port);
  	err = host2addr(host, &server.sin_addr);
  	if (err != NULL) return proxyerror(r, err); /* give up */
      }

-- 
Sameer Parekh					Voice:   510-601-9777x3
Community ConneXion, Inc.			FAX:     510-601-9734
The Internet Privacy Provider			Dialin:  510-658-6376
http://www.c2.org/ (or login as "guest")		sameer@c2.org