Comment out two unimplemented functions from bio.h. Attempt to get the
[openssl.git] / crypto / bio / b_sock.c
index 2c36150b9b038405bac5d852dbab92c777559ded..f96cb60019d5780fdf81771d35cdc736d77f1ca6 100644 (file)
@@ -310,6 +310,9 @@ struct hostent *a;
        {
        int i;
 
+       if(a == NULL)
+           return;
+
        if (a->h_aliases != NULL)
                {
                for (i=0; a->h_aliases[i] != NULL; i++)
@@ -480,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;
@@ -515,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;
@@ -607,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;