X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblutil%2Fsasl.c;h=50b5a29ddcfeae2b07c69e601e13cf1648702d5a;hb=10595e7e5877b224077ae388913f96dbf26e9138;hp=d38287532236f96b5c68f4d25b437ef56d549283;hpb=327880b984a0c36da7dd502dbfb12fdd0b89e82a;p=openldap diff --git a/libraries/liblutil/sasl.c b/libraries/liblutil/sasl.c index d382875322..50b5a29ddc 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-2003 The OpenLDAP Foundation. + * Copyright 1998-2007 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);