]> git.sur5r.net Git - openldap/blobdiff - servers/ldapd/error.c
Fix memory leak if duplicate attr name in at_insert
[openldap] / servers / ldapd / error.c
index e35448c3f17387e39497391fd6a3a9d2c8397504..bd15803b0aebd761a44b68e7b1a1da3d96d39518 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright (c) 1990 Regents of the University of Michigan.
  * All rights reserved.
  * is provided ``as is'' without express or implied warranty.
  */
 
+#include "portable.h"
+
 #include <stdio.h>
+
+#include <ac/ctype.h>
+#include <ac/socket.h>
+
 #include <quipu/ds_error.h>
 #include <quipu/attrvalue.h>
 #include <quipu/name.h>
 #include <quipu/commonarg.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <ctype.h>
+
 #include "lber.h"
 #include "ldap.h"
+#include "ldap_log.h"
+#include "common.h"                    /* get ldap_dn_print() */
 
 void
 print_error( struct DSError *e )