summaryrefslogtreecommitdiffstats
path: root/lib/ferr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-18 15:18:10 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-08-11 17:14:58 +0200
commit5cecdba9d1915d8eeb6d7c17dd4366a3f15d9f3f (patch)
tree7e83ded29f5a7692b0989cd76e5ddda619dea1f4 /lib/ferr.c
parentripd: re-add check for rip_create fail (diff)
downloadfrr-5cecdba9d1915d8eeb6d7c17dd4366a3f15d9f3f.tar.xz
frr-5cecdba9d1915d8eeb6d7c17dd4366a3f15d9f3f.zip
lib: Remove memory check test
Found a missed memory check test that can just be removed. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/ferr.c')
-rw-r--r--lib/ferr.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/ferr.c b/lib/ferr.c
index d315cf843..45574520a 100644
--- a/lib/ferr.c
+++ b/lib/ferr.c
@@ -70,13 +70,6 @@ static ferr_r ferr_set_va(const char *file, int line, const char *func,
if (!error) {
error = XCALLOC(MTYPE_ERRINFO, sizeof(*error));
- if (!error) {
- /* we're screwed */
- zlog_err("out of memory while allocating error info");
- raise(SIGSEGV);
- abort(); /* raise() can return, but raise(SIGSEGV) shall
- not */
- }
pthread_setspecific(errkey, error);
}