stun

simple point to point tunnel
git clone git://git.2f30.org/stun.git
Log | Files | Refs | README

commit b77af1472c3f1b6312098b488cac72618e09e462
parent 0fc4cc5cfd37590c4853f2ac4fd8ee2d2a77aa2a
Author: sin <sin@2f30.org>
Date:   Tue Apr 26 19:17:26 +0100

Fix return value on malloc failure

Diffstat:
stun.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/stun.c b/stun.c @@ -159,13 +159,14 @@ main(int argc, char *argv[]) switch (pid = fork()) { case -1: ret = 1; - logwarn("fork"); + logerr("fork"); goto reap; case 0: chldrun(); break; default: if (!(pe = malloc(sizeof(*pe)))) { + ret = 1; logerr("malloc"); goto reap; }