EV: fix possible nullpointer access in last commit.
[citadel.git] / citadel / modules / rssclient / serv_rssclient.c
index 10e71dcfb5ce759821ac37ed9a69a73f48d33344..d15613d4907d591f0b5fa98d376b9bcbb0533e92 100644 (file)
@@ -111,7 +111,8 @@ ConstStr RSSStates[] = {
 static void SetRSSState(AsyncIO *IO, RSSState State)
 {
        CitContext* CCC = IO->CitContext;
-       memcpy(CCC->cs_clientname, RSSStates[State].Key, RSSStates[State].len + 1);
+       if (CCC != NULL)
+               memcpy(CCC->cs_clientname, RSSStates[State].Key, RSSStates[State].len + 1);
 }
 
 void DeleteRoomReference(long QRnumber)