Skip to content

Commit 4ee9e7f

Browse files
authored
Merge pull request #13 from PierreRustOrange/fix-error-in-socket-address-checks
fix: check on wrong return value in addr_init
2 parents 7d73506 + 1639ec8 commit 4ee9e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ socket_initialize(struct storage_module *module)
9898
if (module->is_initialized)
9999
return -1;
100100

101-
if(addr_init(ctx->config, &(ctx->address)) == -1){
101+
if(addr_init(ctx->config, &(ctx->address)) == 0){
102102
zsys_error("socket: failed to parse uri: %s", ctx->config.address);
103103
goto error;
104104
}

0 commit comments

Comments
 (0)