X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblutil%2Fsasl.c;h=01ac055ce98f5182fc7d97bfaf4b0af8340596cc;hb=3e2cf8cae7bec60d0430328c06e8002b2c17572b;hp=88e2eedd4592937fc7d7aac007688556b95ad264;hpb=02c992a13266d2474a16cd174e98acdb6adbe633;p=openldap
diff --git a/libraries/liblutil/sasl.c b/libraries/liblutil/sasl.c
index 88e2eedd45..01ac055ce9 100644
--- a/libraries/liblutil/sasl.c
+++ b/libraries/liblutil/sasl.c
@@ -1,7 +1,16 @@
/* $OpenLDAP$ */
-/*
- * Copyright 2000-2003 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software .
+ *
+ * Copyright 1998-2017 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * .
*/
#include "portable.h"
@@ -20,6 +29,7 @@
#endif
#include
+#include "ldap_pvt.h"
#include "lutil_ldap.h"
@@ -39,6 +49,8 @@ lutil_sasl_freedefs(
void *defaults )
{
lutilSASLdefaults *defs = defaults;
+
+ assert( defs != NULL );
if (defs->mech) ber_memfree(defs->mech);
if (defs->realm) ber_memfree(defs->realm);