diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-11-09 19:37:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-11-09 19:37:21 +0000 |
commit | cdf58009fc7c81e9b353cf953c8eda94337644fb (patch) | |
tree | 3778adffb51b9eb897b34be68f61411f2f7df619 /event_tagging.c | |
parent | 26573d3de3e35e956fc79eb8c8e3849ca714c109 (diff) | |
download | libevent-cdf58009fc7c81e9b353cf953c8eda94337644fb.tar.gz |
Change an OOM err to a warn in event_tagging.c
svn:r1524
Diffstat (limited to 'event_tagging.c')
-rw-r--r-- | event_tagging.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/event_tagging.c b/event_tagging.c index bbd0f07b..54782a5f 100644 --- a/event_tagging.c +++ b/event_tagging.c @@ -546,8 +546,10 @@ evtag_unmarshal_string(struct evbuffer *evbuf, ev_uint32_t need_tag, return (-1); *pstring = mm_malloc(tag_len + 1); - if (*pstring == NULL) - event_err(1, "%s: malloc", __func__); + if (*pstring == NULL) { + event_warn("%s: malloc", __func__); + return -1; + } evbuffer_remove(evbuf, *pstring, tag_len); (*pstring)[tag_len] = '\0'; |