Fix a few small memory leaks.
This commit is contained in:
parent
b50d6a7f2a
commit
1f00111e94
3 changed files with 8 additions and 3 deletions
|
|
@ -547,9 +547,6 @@ static bool setup_myself(void) {
|
|||
|
||||
/* Check if we want to use message authentication codes... */
|
||||
|
||||
if(!get_config_string(lookup_config(config_tree, "Digest"), &digest))
|
||||
digest = xstrdup("sha1");
|
||||
|
||||
int maclength = 4;
|
||||
get_config_int(lookup_config(config_tree, "MACLength"), &maclength);
|
||||
|
||||
|
|
@ -558,6 +555,9 @@ static bool setup_myself(void) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if(!get_config_string(lookup_config(config_tree, "Digest"), &digest))
|
||||
digest = xstrdup("sha1");
|
||||
|
||||
if(!digest_open_by_name(&myself->indigest, digest, maclength)) {
|
||||
logger(LOG_ERR, "Unrecognized digest type!");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue