As pointed out by HarryC, we need to do nullpointerchecks here.
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 7 Nov 2014 00:01:14 +0000 (01:01 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 7 Nov 2014 00:01:14 +0000 (01:01 +0100)
citadel/modules/migrate/serv_migrate.c

index f70493e825a085ee968a80519f7a4540157c1486..e82ee8a04d4eadc339151c63db77d715c10ee852 100644 (file)
@@ -69,6 +69,10 @@ void xml_strout(char *str) {
 
        char *c = str;
 
+       if (str == NULL) {
+               return;
+       }
+
        while (*c != 0) {
                if (*c == '\"') {
                        client_write("&quot;", 6);