Ian Goldberg 7 years ago
parent
commit
1d305de885
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/socks5proxy.c

+ 1 - 1
client/socks5proxy.c

@@ -113,7 +113,7 @@ int main(void){
 		return 1;
 	}
         uint16_t len = htons(strlen(encoded_bytes));
-	int32_t bytes_sent = send(ous_in, (unsigned char *) &len), sizeof(uint16_t), 0);
+	int32_t bytes_sent = send(ous_in, (unsigned char *) &len, sizeof(uint16_t), 0);
 	bytes_sent += send(ous_in, encoded_bytes, ntohs(len), 0);
 	printf("Wrote %d bytes to OUS_in: %x\n %s\n", bytes_sent, len, encoded_bytes);