changeset 69973:dc4e5cc51e66

(conv_lisp_to_sockaddr): If FAMILY unknown, just return.
author Richard M. Stallman <rms@gnu.org>
date Wed, 12 Apr 2006 15:00:32 +0000
parents 8de650354007
children 2ecef706d823
files src/process.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Wed Apr 12 13:40:23 2006 +0000
+++ b/src/process.c	Wed Apr 12 15:00:32 2006 +0000
@@ -2322,7 +2322,9 @@
 }
 
 /* Convert an address object (vector or string) to an internal sockaddr.
-   Format of address has already been validated by size_lisp_to_sockaddr.  */
+   Address format has already been validated by get_lisp_to_sockaddr_size,
+   but just to be nice, we return without doing anything
+   if FAMILY is not valid.  */
 
 static void
 conv_lisp_to_sockaddr (family, address, sa, len)
@@ -2366,6 +2368,7 @@
 	  return;
 	}
 #endif
+      return;
     }
   else if (STRINGP (address))
     {