Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Apply fix for RADSECPROXY-42
  • Loading branch information
Fabian Mauchle committed Jan 31, 2018
1 parent 613c164 commit 812526d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Expand Up @@ -30,6 +30,7 @@ Changes between 1.6.8 and the master branch
- Fix a couple of memory leaks and NULL ptr derefs in error cases.
- Don't forget about good dynamically discovered (TLS) connections
(RADSECPROXY-69).
- Fix refcounting in error cases when loading configuration (RADSECPROXY-42)

2016-09-21 1.6.8
Bug fixes:
Expand Down Expand Up @@ -276,4 +277,3 @@ Changes between 1.6.8 and the master branch
Fixed crash when servers were configured after first realm block

2007-09-21 1.0

7 changes: 4 additions & 3 deletions radsecproxy.c
Expand Up @@ -2007,12 +2007,12 @@ struct list *addsrvconfs(char *value, char **names) {
}
if (!entry) {
debug(DBG_ERR, "addsrvconfs failed for realm %s, no server named %s", value, names[n]);
list_destroy(conflist);
list_free(conflist);
return NULL;
}
if (!list_push(conflist, conf)) {
debug(DBG_ERR, "malloc failed");
list_destroy(conflist);
list_free(conflist);
return NULL;
}
debug(DBG_DBG, "addsrvconfs: added server %s for realm %s", conf->name, value);
Expand Down Expand Up @@ -2096,6 +2096,7 @@ struct realm *addrealm(struct list *realmlist, char *value, char **servers, char
realm = NULL;
goto exit;
}
newrealmref(realm);

realm->name = stringcopy(value, 0);
if (!realm->name) {
Expand Down Expand Up @@ -2154,7 +2155,7 @@ struct realm *addrealm(struct list *realmlist, char *value, char **servers, char
newrealmref(realm);
freegconfmstr(accservers);
}
return newrealmref(realm);
return realm;
}

struct list *createsubrealmservers(struct realm *realm, struct list *srvconfs) {
Expand Down

0 comments on commit 812526d

Please sign in to comment.