diff --git a/src/ua_securechannel.c b/src/ua_securechannel.c index fd8ef083b06..75733b6ba5c 100644 --- a/src/ua_securechannel.c +++ b/src/ua_securechannel.c @@ -594,6 +594,7 @@ unpackPayloadOPN(UA_SecureChannel *channel, UA_Chunk *chunk, void *application) if(!channel->securityPolicy) { if(channel->processOPNHeader) res = channel->processOPNHeader(application, channel, &asymHeader); + UA_CHECK_STATUS(res, goto error); if(!channel->securityPolicy) res = UA_STATUSCODE_BADINTERNALERROR; UA_CHECK_STATUS(res, goto error);