# HG changeset patch # User bertrand # Date 1024640748 0 # Node ID 837ca6fd4adf95cdf113ab6b2b174a0d1b00cb8c # Parent 654b26c941e5357ed5cd4fd5d4aa06485e826f74 Checked the return value when retrieving the protocol level. diff -r 654b26c941e5 -r 837ca6fd4adf libmpdemux/cddb.c --- a/libmpdemux/cddb.c Fri Jun 21 06:15:36 2002 +0000 +++ b/libmpdemux/cddb.c Fri Jun 21 06:25:48 2002 +0000 @@ -529,7 +529,10 @@ cddb_data->xmcd_file = NULL; cddb_create_hello(cddb_data); - cddb_get_proto_level(cddb_data); + if( cddb_get_proto_level(cddb_data)<0 ) { + printf("Failed to get the protocol level\n"); + return -1; + } //cddb_get_freedb_sites(&cddb_data);