Browse Source

Fix for 155141: bug in linked list code

David Boreham 20 years ago
parent
commit
de5d40a284
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ldap/servers/slapd/sasl_map.c

+ 2 - 2
ldap/servers/slapd/sasl_map.c

@@ -146,8 +146,8 @@ sasl_map_remove_list_entry(sasl_map_private *priv, char *removeme)
 				/* Unlink it */
 				/* Unlink it */
 				previous->next = current->next;
 				previous->next = current->next;
 			} else {
 			} else {
-				/* That was the only entry, and now there are none */
-				priv->map_data_list = NULL;
+				/* That was the first list entry */
+				priv->map_data_list = current->next;
 			}
 			}
 			/* Payload free */
 			/* Payload free */
 			sasl_map_free_data(&current);
 			sasl_map_free_data(&current);