From c8640013c2fa89c9a774eafb738d1e1bc03349d0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 4 Oct 2008 10:11:43 +0200 Subject: [PATCH] lua: return on socket init failure Signed-off-by: Julien Danjou --- luaa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luaa.c b/luaa.c index e0db6622..2e55179e 100644 --- a/luaa.c +++ b/luaa.c @@ -944,10 +944,10 @@ luaA_cs_init(void) if(unlink(addr->sun_path)) warn("error unlinking existing file: %s", strerror(errno)); if(bind(csfd, (const struct sockaddr *) addr, SUN_LEN(addr))) - warn("error binding UNIX domain socket: %s", strerror(errno)); + return warn("error binding UNIX domain socket: %s", strerror(errno)); } else - warn("error binding UNIX domain socket: %s", strerror(errno)); + return warn("error binding UNIX domain socket: %s", strerror(errno)); } listen(csfd, 10);