Index: /trunk/server/memcached.c
===================================================================
--- /trunk/server/memcached.c (revision 728)
+++ /trunk/server/memcached.c (revision 729)
@@ -2391,5 +2391,4 @@
 }
 
-
 static int server_socket(const int port, const bool is_udp) {
     int sfd;
@@ -2432,5 +2431,4 @@
     }
 
-    conn *conn_ptr = NULL;
     for (next= ai; next; next= next->ai_next) {
         conn *listen_conn_add;
@@ -2484,9 +2482,6 @@
         }
 
-        if (listen_conn == NULL) {
-            conn_ptr = listen_conn = listen_conn_add;
-        } else {
-            conn_ptr->next= listen_conn_add;
-        }
+        listen_conn_add->next = listen_conn;
+        listen_conn = listen_conn_add;
       }
     }
@@ -2494,8 +2489,6 @@
     freeaddrinfo(ai);
 
-    if (success == 0)
-        return 1;
-
-    return 0;
+    /* Return zero iff we detected no errors in starting up connections */
+    return success == 0;
 }
 
