Skip to content

Commit

Permalink
fixes bug where oidc-agent would crash if it receives nonjson message
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Sep 4, 2017
1 parent fab0e39 commit 88d0374
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/oidc-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ int main(int argc, char** argv) {
char* q = ipc_read(*(con->msgsock));
if(NULL!=q) {
struct key_value pairs[4];
pairs[0].key = "request";
pairs[1].key = "provider";
pairs[2].key = "min_valid_period";
pairs[3].key = "config";
pairs[0].key = "request"; pairs[0].value = NULL;
pairs[1].key = "provider"; pairs[1].value = NULL;
pairs[2].key = "min_valid_period"; pairs[2].value = NULL;
pairs[3].key = "config"; pairs[3].value = NULL;
if(getJSONValues(q, pairs, sizeof(pairs)/sizeof(*pairs))<0) {
ipc_write(*(con->msgsock), "Bad request: %s", oidc_perror());
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef OIDC_VERSION_H
#define OIDC_VERSION_H

#define VERSION "1.0.3"
#define VERSION "1.0.4"
#define BUG_ADDRESS "<https://github.com/KIT-SCC/oidc-agent/issues>"
#define AGENT_VERSION "oidc-agent " VERSION
#define GEN_VERSION "oidc-gen " VERSION
Expand Down

0 comments on commit 88d0374

Please sign in to comment.