* Inbound network authentication working. Fixed a bug in the split-horizon
[citadel.git] / citadel / tools.c
index 28e5c4789c3388e35c46552aab3b6ab67a7fa202..8ff62786d6ce9fb41a8ceee9dc27442558a6c28e 100644 (file)
@@ -75,6 +75,7 @@ int num_tokens(char *source, char tok) {
        int a;
        int count = 1;
 
+       if (source == NULL) return(0);
        for (a=0; a<strlen(source); ++a) {
                if (source[a]==tok) ++count;
        }