From 62608242518b6e3cb0194a9c19f9ef41c55e823f Mon Sep 17 00:00:00 2001 From: Dennis Potman Date: Fri, 29 May 2020 13:31:16 +0200 Subject: [PATCH] Fix uninitialized use of relay_only Fix using the variable relay_only uninitialized in the function connect_proxy_writer_with_reader when security is disabled in the build configuration. Signed-off-by: Dennis Potman --- src/core/ddsi/include/dds/ddsi/ddsi_security_omg.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/ddsi/include/dds/ddsi/ddsi_security_omg.h b/src/core/ddsi/include/dds/ddsi/ddsi_security_omg.h index 6eeb9eb..bcf81ec 100644 --- a/src/core/ddsi/include/dds/ddsi/ddsi_security_omg.h +++ b/src/core/ddsi/include/dds/ddsi/ddsi_security_omg.h @@ -1290,6 +1290,7 @@ inline bool q_omg_reader_is_submessage_protected(UNUSED_ARG(const struct reader inline bool q_omg_security_check_remote_reader_permissions(UNUSED_ARG(const struct proxy_reader *prd), UNUSED_ARG(uint32_t domain_id), UNUSED_ARG(struct participant *pp), UNUSED_ARG(bool *relay_only)) { + *relay_only = false; return true; }