nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 8e4d2dd6ba17c7663c095a993c12abb351ee7533
parent 92df0b2e0f33b9b3cabbaaea3a9925deac7792a8
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 22 Mar 2020 18:17:59 -0400

nserver: Update call_function.

Update sscreate error check.

Diffstat:
nserver/src/ncmd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nserver/src/ncmd.c b/nserver/src/ncmd.c @@ -175,7 +175,7 @@ int call_function(int func, struct bstrList *cmd_parts, char *out) return -1; } - if (sscreate(bdata(cmd_parts->entry[1])) != 0) { + if (sscreate(bdata(cmd_parts->entry[1])) < 0) { strncpy(out, "error: create failed\n", RSP_SIZE); return -1;