X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ws-json1.c;fp=src%2Fafb-ws-json1.c;h=bdd1286cfdd59384454c933215cb51955c2caf12;hb=157c652b4bb8eba5692bed2a4bc75650f7ae7622;hp=50980d7b6918cc58a81ac509a318d344857b1315;hpb=9952955d440866fa061d78fe923cb8282f778667;p=src%2Fapp-framework-binder.git 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;