提交 def9f431 编写于 作者: R Ralf S. Engelschall

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
上级 8aef252b
......@@ -5,6 +5,9 @@
Changes between 0.9.1c and 0.9.2
*) Fix 'port' variable from `int' to `unsigned int' in crypto/bio/b_sock.c
[Richard Levitte <levitte@stacken.kth.se>]
*) Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal()
from `int' to `unsigned int' because it's a length and initialized by
EVP_DigestFinal() which expects an `unsigned int *'.
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册