Fix bug in qwknetftpc and remove debugging output
This commit is contained in:
parent
99feabb6e5
commit
876037e0ac
@ -27,7 +27,7 @@ def dostuff(config_file):
|
|||||||
file.close()
|
file.close()
|
||||||
os.remove(repfile)
|
os.remove(repfile)
|
||||||
print("SENT: " + config.get("Main", "Host") + ".REP")
|
print("SENT: " + config.get("Main", "Host") + ".REP")
|
||||||
repfile = config.get("Main", "Outbound") + "/" + config.get("Main", "Host") + ".REP." + i
|
repfile = config.get("Main", "Outbound") + "/" + config.get("Main", "Host") + ".REP." + str(i)
|
||||||
i = i + 1
|
i = i + 1
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
@ -118,7 +118,6 @@ static char *get_key_value(struct msg_headers_t *header, char *key) {
|
|||||||
if (header == NULL) return NULL;
|
if (header == NULL) return NULL;
|
||||||
for (int i=0;i<header->header_count;i++) {
|
for (int i=0;i<header->header_count;i++) {
|
||||||
if (strcmp(key, header->headers[i]->key) == 0) {
|
if (strcmp(key, header->headers[i]->key) == 0) {
|
||||||
fprintf(stderr, "%s\n", header->headers[i]->value);
|
|
||||||
return header->headers[i]->value;
|
return header->headers[i]->value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user