Browse Source

Merge branch 'master' of https://github.com/acplt/open62541 into channel_counting

FlorianPalm 9 years ago
parent
commit
63d620b93d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ua_types_encoding_binary.c

+ 1 - 1
src/ua_types_encoding_binary.c

@@ -891,7 +891,7 @@ UA_StatusCode UA_DiagnosticInfo_decodeBinary(UA_ByteString const *src, size_t *U
                                              UA_DiagnosticInfo *dst) {
     UA_DiagnosticInfo_init(dst);
     UA_StatusCode retval = UA_Byte_decodeBinary(src, offset, (UA_Byte*) dst);
-    if(!retval)
+    if(retval != UA_STATUSCODE_GOOD)
         return retval;
     if(dst->hasSymbolicId)
         retval |= UA_Int32_decodeBinary(src, offset, &dst->symbolicId);