X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famcheck.c;h=5e9653e4a56277d17c2d291205dbfdceb363bd10;hb=d74dc4d908fcbc1a4ef474edaf51e61ec90eab6b;hp=533a044013a072eb6efaf47b12e34cd6d3a67c53;hpb=2627875b7d18858bc1f9f7652811e4d8c15a23eb;p=debian%2Famanda diff --git a/server-src/amcheck.c b/server-src/amcheck.c index 533a044..5e9653e 100644 --- a/server-src/amcheck.c +++ b/server-src/amcheck.c @@ -1744,6 +1744,7 @@ start_host( hostp->hostname, qname); g_fprintf(outf, _("Dumptype configuration is not GNUTAR or DUMP." " It is case sensitive\n")); + l = stralloc(""); } else { l = vstralloc("\n" " APPLICATION\n", NULL); @@ -1931,13 +1932,20 @@ handle_result( t = strstr(line, "features="); if(t != NULL && (g_ascii_isspace((int)t[-1]) || t[-1] == ';')) { + char *u = strchr(t, ';'); + if (u) + *u = '\0'; t += SIZEOF("features=")-1; am_release_feature_set(hostp->features); if((hostp->features = am_string_to_feature(t)) == NULL) { - g_fprintf(outf, _("ERROR: %s: bad features value: %s\n"), - hostp->hostname, line); + g_fprintf(outf, _("ERROR: %s: bad features value: '%s'\n"), + hostp->hostname, t); g_fprintf(outf, _("The amfeature in the reply packet is invalid\n")); + remote_errors++; + hostp->up = HOST_DONE; } + if (u) + *u = ';'; } continue;