commit bdb32ad117305da3375dd4da0302296b6d401db9
parent 6b4dd44b6a7d86ddf0f2fea2e9de11bada8f33f1
Author: cnlohr <lohr85@gmail.com>
Date: Thu, 1 Mar 2018 18:40:44 -0500
whoops got the struct backwards
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httping.c b/httping.c
@@ -76,7 +76,7 @@ void DoHTTPing( const char * addy, double minperiod, int * seqnoptr, volatile do
/* build the server's Internet address */
bzero((char *) &serveraddr, sizeof(serveraddr));
serveraddr.sin_family = AF_INET;
- memcpy((char *)server->h_addr, (char *)&serveraddr.sin_addr.s_addr, server->h_length);
+ memcpy((char *)&serveraddr.sin_addr.s_addr, (char *)server->h_addr, server->h_length);
serveraddr.sin_port = htons(portno);
/* connect: create a connection with the server */