summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_core/protos.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_core/protos.cpp b/src/mir_core/protos.cpp
index ca7a9513fa..dfa83a1800 100644
--- a/src/mir_core/protos.cpp
+++ b/src/mir_core/protos.cpp
@@ -60,6 +60,9 @@ MIR_CORE_DLL(INT_PTR) ProtoBroadcastAck(const char *szModule, HANDLE hContact, i
MIR_CORE_DLL(int) ProtoServiceExists(const char *szModule, const char *szService)
{
+ if (szModule == NULL || szService == NULL)
+ return false;
+
char str[MAXMODULELABELLENGTH * 2];
strncpy_s(str,szModule,strlen(szModule));
strncat_s(str,szService,strlen(szService));