X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=libraries%2Fliblutil%2Fsasl.c;h=d559eefa89baae64714bb26e91a665e412166c78;hb=6adee8cd44f016b90183685d9db84a67c47992bc;hp=ffbd29846e67b03fadbcd18010c79a319b3c4d32;hpb=3c5068bc1fa84fc5daf1e50d4f1a929cec91b7e9;p=openldap diff --git a/libraries/liblutil/sasl.c b/libraries/liblutil/sasl.c index ffbd29846e..d559eefa89 100644 --- a/libraries/liblutil/sasl.c +++ b/libraries/liblutil/sasl.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2007 The OpenLDAP Foundation. + * Copyright 1998-2011 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);