Update of /cvsroot/mahogany/M/lib/imap/src/osdep/nt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21206/lib/imap/src/osdep/nt

Modified Files:
        ip_nt.c 
Log Message:
merged in the UW IMAP 2004a snapshot

Index: ip_nt.c
===================================================================
RCS file: /cvsroot/mahogany/M/lib/imap/src/osdep/nt/ip_nt.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -u -2 -r1.1 -r1.2
--- ip_nt.c     24 Apr 2004 23:12:57 -0000      1.1
+++ ip_nt.c     29 Jun 2004 23:55:20 -0000      1.2
@@ -11,5 +11,5 @@
  *
  * Date:       18 December 2003
- * Last Edited:        23 February 2004
+ * Last Edited:        26 May 2004
  * 
  * The IMAP toolkit provided in this Distribution is
@@ -152,6 +152,7 @@
   char **adl,tmp[MAILTMPLEN];
   struct hostent *he;
-                               /* case-independent lookup */
-  if (name && (strlen (name) < MAILTMPLEN) &&
+  if (name) {                  /* first lookup? */
+                               /* yes, do case-independent lookup */
+    if ((strlen (name) < MAILTMPLEN) &&
       (he = gethostbyname (lcase (strcpy (tmp,name))))) {
     adl = he->h_addr_list;
@@ -161,4 +162,12 @@
     if (next) *next = (void *) adl;
   }
+    else {                     /* error */
+      adl = NIL;
+      if (len) *len = 0;
+      if (family) *family = 0;
+      if (canonical) *canonical = NIL;
+      if (next) *next = NIL;
+    }
+  }
                                /* return next in series */
   else if (next && (adl = (char **) *next)) *next = ++adl;



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to