X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblber%2Fetest.c;h=d5ad1d31ad6df9bf5c18f570eebfe854f496da72;hb=0e3fa1ee145215f6cf63decc11a2da949be0eea0;hp=65735575525bd728ea478d0be48bd6cf611251a9;hpb=acbb5cf689a4336af05c9f259d909d8141055bac;p=openldap diff --git a/libraries/liblber/etest.c b/libraries/liblber/etest.c index 6573557552..d5ad1d31ad 100644 --- a/libraries/liblber/etest.c +++ b/libraries/liblber/etest.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2006 The OpenLDAP Foundation. + * Copyright 1998-2012 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -171,8 +171,8 @@ main( int argc, char **argv ) return( EXIT_FAILURE ); } - if ( ber_flush( sb, ber, 1 ) == -1 ) { - perror( "ber_flush" ); + if ( ber_flush2( sb, ber, LBER_FLUSH_FREE_ALWAYS ) == -1 ) { + perror( "ber_flush2" ); return( EXIT_FAILURE ); }