Skip to content

Commit 43ebe69

Browse files
committed
Fixed bug writing UseAgentCert to config file
1 parent 35e55fb commit 43ebe69

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

agent.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ extern struct ScheduledJob* currentJob; /* Defined in schedule.c */
102102
/* 2.16.1.0 = Modified agent to not send GUID capabilities. Compile bug fix */
103103
/* 2.17.0.0 = Modified agent to accept ECDSA as well as ECC for a keytype */
104104
/* 2.18.0.0 = Modified agent to skip using agent certificate & openssl fix */
105+
/* 2.19.0.0 = Modified agent to fix bug with writing agent certificate to file*/
105106
#define AGENT_MAJOR 2ULL
106-
#define AGENT_MINOR 18ULL
107+
#define AGENT_MINOR 19ULL
107108
#define AGENT_MICRO 0ULL
108109
#define AGENT_BUILD 0ULL
109110

config.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,7 @@ char* config_to_json( void )
550550
if(ConfigData->retryInterval) {
551551
json_append_member(jsonRoot, "retryInterval", json_mknumber(ConfigData->retryInterval));
552552
}
553-
if(ConfigData->UseAgentCert) {
554-
json_append_member(jsonRoot, "UseAgentCert", json_mkbool(ConfigData->UseAgentCert));
555-
}
553+
json_append_member(jsonRoot, "UseAgentCert", json_mkbool(ConfigData->UseAgentCert));
556554

557555
char* confString = json_stringify(jsonRoot, "\t");
558556
json_delete(jsonRoot);

0 commit comments

Comments
 (0)