Skip to content

Commit

Permalink
gmetad: avoid malformed XML responses when request not found
Browse files Browse the repository at this point in the history
partially revert change from r1946 were invalid XML was being generated
and the connection aborted if the interactive request referred to a
non existant hostname/metric
  • Loading branch information
carenas committed Jan 22, 2009
1 parent 2cd8c56 commit c03dbbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gmetad/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,13 @@ process_path (client_t *client, char *path, datum_t *myroot, datum_t *key)
rc = process_path(client, q, found, &findkey);

datum_free(found);
free(element);
}
else
{
/* element not found */
free(element);
return 1;
rc = process_path(client, 0, myroot, NULL);
}
free(element);
}
if (rc) return 1;

Expand Down

0 comments on commit c03dbbc

Please sign in to comment.