mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
make addr_len the right sign in sslecho
cygwin caught a signedness difference in this pointer. Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from https://github.com/openssl/openssl/pull/24047)
This commit is contained in:
parent
793a4056ad
commit
6195c08d10
@ -156,7 +156,11 @@ int main(int argc, char **argv)
|
||||
char *rem_server_ip = NULL;
|
||||
|
||||
struct sockaddr_in addr;
|
||||
#if defined(OPENSSL_SYS_CYGWIN) || defined(OPENSSL_SYS_WINDOWS)
|
||||
int addr_len = sizeof(addr);
|
||||
#else
|
||||
unsigned int addr_len = sizeof(addr);
|
||||
#endif
|
||||
|
||||
#if !defined (OPENSSL_SYS_WINDOWS)
|
||||
/* ignore SIGPIPE so that server can continue running when client pipe closes abruptly */
|
||||
|
Loading…
Reference in New Issue
Block a user