ソースを参照

Fix for 155141: bug in linked list code

David Boreham 20 年 前
コミット
de5d40a284
1 ファイル変更2 行追加2 行削除
  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 */
 				previous->next = current->next;
 			} 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 */
 			sasl_map_free_data(&current);