From: paco Date: Mon, 25 Jun 2018 14:10:47 +0000 (+0200) Subject: lib: check return value (Coverity 1453456) X-Git-Tag: frr-6.1-dev~252^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e339d7c04dd6ad2d6c9620ad15f185f584197be8;p=matthieu%2Ffrr.git lib: check return value (Coverity 1453456) Signed-off-by: F. Aragon --- diff --git a/lib/libfrr.c b/lib/libfrr.c index 505bea9b18..9ea5e985cd 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -846,7 +846,9 @@ static int frr_daemon_ctl(struct thread *t) switch (buf[0]) { case 'S': /* SIGTSTP */ vty_stdio_suspend(); - send(daemon_ctl_sock, "s", 1, 0); + if (send(daemon_ctl_sock, "s", 1, 0) < 0) + zlog_err("%s send(\"s\") error (SIGTSTP propagation)", + (di && di->name ? di->name : "")); break; case 'R': /* SIGTCNT [implicit] */ vty_stdio_resume();