X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ws-json1.c;h=4b6c04ebb6f3a35538d821635d8080c7e3d80868;hb=3dbe2d3eeeec9c1d3cf82f41378b306499b9d41b;hp=bdd1286cfdd59384454c933215cb51955c2caf12;hpb=157c652b4bb8eba5692bed2a4bc75650f7ae7622;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ws-json1.c b/src/afb-ws-json1.c index bdd1286c..4b6c04eb 100644 --- a/src/afb-ws-json1.c +++ b/src/afb-ws-json1.c @@ -37,7 +37,6 @@ #include "afb-xreq.h" #include "afb-context.h" #include "afb-evt.h" -#include "afb-subcall.h" #include "verbose.h" /* predeclaration of structures */ @@ -130,8 +129,6 @@ 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;