-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.1.10
-
Fix Version/s: None
-
Component/s: Enforcer
-
Labels:None
-
Environment:
Source code
I am not going to comment on adding a "command line"
option in order to pass the cka_id to the command in the XML but the code modified the parsed XML so that the --cka_id is removed from the string and therefore you only get the --cka_id on the first run
{{in ./enforcer/src/keystate/keystate_ds.c:
{{156 pos = strstr(ds_command, " --cka_id");
157 if (pos){
158 cka = 1;
159 *pos = '\0';
160 rrstr[strlen(rrstr)-1] = '\0';
161 pos = NULL;}}}}
the strstr points to the ds_command so on subsequent vists the cka_id isn't seen.