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
This commit is contained in:
parent
8aef252bf4
commit
def9f43151
2 changed files with 6 additions and 3 deletions
3
CHANGES
3
CHANGES
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue