return ERR_ALERT | ERR_FATAL;
}
- /* copy the string to be able to dump the complete one in case of
- * error, because strtok_r is writing \0 inside. */
- str = strdup(p);
- if (!str) {
- memprintf(err, "'%s' : Could not allocate memory", args[cur_arg]);
- return ERR_ALERT | ERR_FATAL;
-
- }
-
if (strcmp(args[cur_arg], "ca-ignore-err") == 0)
ignerr = conf->ca_ignerr_bitfield;
return 0;
}
+ /* copy the string to be able to dump the complete one in case of
+ * error, because strtok_r is writing \0 inside. */
+ str = strdup(p);
+ if (!str) {
+ memprintf(err, "'%s' : Could not allocate memory", args[cur_arg]);
+ return ERR_ALERT | ERR_FATAL;
+ }
+
s1 = str;
while ((token = strtok_r(s1, ",", &s2))) {
s1 = NULL;