X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=recover-src%2Famrecover.c;h=c7dbc7e01f0483f8a0841ced4d5c303858bbc047;hb=refs%2Ftags%2Fupstream%2F2.6.1p1;hp=49dcd378a6bca358238df9b341f3a759004a6933;hpb=2627875b7d18858bc1f9f7652811e4d8c15a23eb;p=debian%2Famanda diff --git a/recover-src/amrecover.c b/recover-src/amrecover.c index 49dcd37..c7dbc7e 100644 --- a/recover-src/amrecover.c +++ b/recover-src/amrecover.c @@ -534,14 +534,18 @@ main( { char *their_feature_string = NULL; + indexsrv_features = NULL; + line = vstrallocf("FEATURES %s", our_features_string); if(exchange(line) == 0) { their_feature_string = stralloc(server_line+13); indexsrv_features = am_string_to_feature(their_feature_string); + if (!indexsrv_features) + g_printf(_("Bad feature string from server: %s"), their_feature_string); } - else { + if (!indexsrv_features) indexsrv_features = am_set_default_feature_set(); - } + amfree(their_feature_string); amfree(line); }