--- login.c	Wed Feb 18 20:58:04 1998
+++ login.c.before	Wed Feb 18 20:54:29 1998
@@ -354,28 +354,12 @@
 	    *p = 0;
 	  hostname = optarg;
 	  { 
-	    struct hostent *he = gethostbyname(hostname);
-	    if (he) {
-	      if(he->h_addr_list) {
-		
-		int x=0,y=0;
-		
-		while(he->h_addr_list[x]!=NULL) x++;
-		
-		memcpy(&hostaddress, he, sizeof(hostaddress));
-		
-		hostaddress.h_addr_list = (char **) malloc (sizeof (char *) * x);
-		
-		while (y<x)
-		  {
-		    hostaddress.h_addr_list[y] = (char *) malloc (hostaddress.h_length);
-		    memcpy(hostaddress.h_addr_list[y],he->h_addr_list[y], hostaddress.h_length);
-		    y++;
-		  }
+	      struct hostent *he = gethostbyname(hostname);
+	      if (he) {
+		  memcpy(&hostaddress, he, sizeof(hostaddress));
+	      } else {
+		  memset(&hostaddress, 0, sizeof(hostaddress));
 	      }
-	    } else {
-	      memset(&hostaddress, 0, sizeof(hostaddress));
-	    }
 	  }
 	  break;
 	  
