]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/sasl.c
ITS#8585 Fail ldap_result if handle is already bad
[openldap] / libraries / liblutil / sasl.c
index ffbd29846e67b03fadbcd18010c79a319b3c4d32..01ac055ce98f5182fc7d97bfaf4b0af8340596cc 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2007 The OpenLDAP Foundation.
+ * Copyright 1998-2017 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -49,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);