summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-02-25 10:54:27 +0000
committerRalf S. Engelschall <rse@openssl.org>1999-02-25 10:54:27 +0000
commitdef9f43151ef301237bb6b549af02b124d89a50a (patch)
tree3377d7160208437484b9c65988c2724a914157d2 /crypto
parent8aef252bf4a737bfb10eed1b5d49f44b5ea218d5 (diff)
downloadopenssl-new-def9f43151ef301237bb6b549af02b124d89a50a.tar.gz
Fix 'port' variable from `int' to `unsigned int' in crypto/bio/b_sock.c
Submitted by: Richard Levitte <levitte@stacken.kth.se> Reviewed by: Ralf S. Engelschall
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/b_sock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c
index 402439cc2e..f96cb60019 100644
--- a/crypto/bio/b_sock.c
+++ b/crypto/bio/b_sock.c
@@ -483,7 +483,7 @@ int bind_mode;
struct sockaddr_in server,client;
int s= -1,cs;
unsigned char ip[4];
- short port;
+ unsigned short port;
char *str,*h,*p,*e;
unsigned long l;
int err_num;
@@ -518,7 +518,7 @@ int bind_mode;
memset((char *)&server,0,sizeof(server));
server.sin_family=AF_INET;
- server.sin_port=htons((unsigned short)port);
+ server.sin_port=htons(port);
if (strcmp(h,"*") == 0)
server.sin_addr.s_addr=INADDR_ANY;
@@ -610,7 +610,7 @@ char **addr;
int ret=INVALID_SOCKET;
static struct sockaddr_in from;
unsigned long l;
- short port;
+ unsigned short port;
int len;
char *p;