From eab2e6f2cbfb4bb6680d6f5961676465470b9587 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 29 Jun 2023 15:23:30 +0100 Subject: [PATCH] - fixed potential null pointer dereferentiation in IedConnection_getDeviceModelFromServer when no error argument given --- src/iec61850/client/ied_connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iec61850/client/ied_connection.c b/src/iec61850/client/ied_connection.c index bc581dea..bc8e9ff6 100644 --- a/src/iec61850/client/ied_connection.c +++ b/src/iec61850/client/ied_connection.c @@ -1757,7 +1757,7 @@ IedConnection_getDeviceModelFromServer(IedConnection self, IedClientError* error LinkedList_destroy(logicalDeviceNames); } else - *error = iedConnection_mapMmsErrorToIedError(mmsError); + if (error) *error = iedConnection_mapMmsErrorToIedError(mmsError); } LinkedList /**/