diff options
Diffstat (limited to 'src/afb-ws-json1.c')
-rw-r--r-- | src/afb-ws-json1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afb-ws-json1.c b/src/afb-ws-json1.c index 50980d7b..bdd1286c 100644 --- a/src/afb-ws-json1.c +++ b/src/afb-ws-json1.c @@ -130,6 +130,8 @@ struct afb_ws_json1 *afb_ws_json1_create(int fd, struct afb_apiset *apiset, stru goto error4; result->cred = afb_cred_create_for_socket(fd); + if (!result->cred) + result->cred = afb_cred_current(); result->apiset = afb_apiset_addref(apiset); return result; |