summaryrefslogtreecommitdiff
path: root/libubus-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'libubus-io.c')
-rw-r--r--libubus-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libubus-io.c b/libubus-io.c
index 7047ac5..daa7106 100644
--- a/libubus-io.c
+++ b/libubus-io.c
@@ -375,6 +375,7 @@ int ubus_reconnect(struct ubus_context *ctx, const char *path)
}
ctx->sock.eof = false;
+ ctx->sock.error = false;
ctx->sock.fd = usock(USOCK_UNIX, path, NULL);
if (ctx->sock.fd < 0)
return UBUS_STATUS_CONNECTION_FAILED;