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:
Ralf S. Engelschall 1999-02-25 10:54:27 +00:00
parent 8aef252bf4
commit def9f43151
2 changed files with 6 additions and 3 deletions

View file

@ -5,6 +5,9 @@
Changes between 0.9.1c and 0.9.2 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() *) 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 from `int' to `unsigned int' because it's a length and initialized by
EVP_DigestFinal() which expects an `unsigned int *'. EVP_DigestFinal() which expects an `unsigned int *'.

View file

@ -483,7 +483,7 @@ int bind_mode;
struct sockaddr_in server,client; struct sockaddr_in server,client;
int s= -1,cs; int s= -1,cs;
unsigned char ip[4]; unsigned char ip[4];
short port; unsigned short port;
char *str,*h,*p,*e; char *str,*h,*p,*e;
unsigned long l; unsigned long l;
int err_num; int err_num;
@ -518,7 +518,7 @@ int bind_mode;
memset((char *)&server,0,sizeof(server)); memset((char *)&server,0,sizeof(server));
server.sin_family=AF_INET; server.sin_family=AF_INET;
server.sin_port=htons((unsigned short)port); server.sin_port=htons(port);
if (strcmp(h,"*") == 0) if (strcmp(h,"*") == 0)
server.sin_addr.s_addr=INADDR_ANY; server.sin_addr.s_addr=INADDR_ANY;
@ -610,7 +610,7 @@ char **addr;
int ret=INVALID_SOCKET; int ret=INVALID_SOCKET;
static struct sockaddr_in from; static struct sockaddr_in from;
unsigned long l; unsigned long l;
short port; unsigned short port;
int len; int len;
char *p; char *p;