Add out of memory checks which were missing.

This commit is contained in:
Wilco Baan Hofman 2012-07-31 16:27:52 +02:00
parent 5c3eb66b17
commit 21893ff091

View file

@ -188,9 +188,13 @@ STATUS parse_message(TALLOC_CTX *mem_ctx, dbi_conn conn, struct packet *pkt) {
}
quoted_prom = talloc_quoted_string(message, prom);
NO_MEM_RETURN(quoted_prom);
quoted_code = talloc_quoted_string(message, code);
NO_MEM_RETURN(quoted_code);
quoted_long_code = talloc_quoted_string(message, sia_code_str(code));
NO_MEM_RETURN(quoted_long_code);
quoted_description = talloc_quoted_string(message, ptr);
NO_MEM_RETURN(quoted_description);
fprintf(stderr, "%s %s %s -- %s: %s\n", prom, code, ptr, sia_code_str(code), sia_code_desc(code));