summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-06-22 15:11:42 +0200
committerGergely Nagy <algernon@balabit.hu>2012-06-22 15:11:42 +0200
commit645e1eb4155bccb4586e63febfbba7828d4a61d7 (patch)
treeed8d47a00533e1806579353ac028eb1025c885c2 /data
parent88c48725d12663dd807e28d65871f8db4ac7273e (diff)
Fix error handling in buffer.c
* Don't lose old msg on realloc() failure * Don't dereference NULL on failure when buffer = (...) if (!buffer) { buffer->len = orig_len; ...} * To avoid the above pattern, use integer return values: "buffer" itself will not change in any case. * Add missing error handling Signed-off-by: Miloslav Trmač <mitr@redhat.com> Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions