Skip to content

Commit

Permalink
Use workaround for error logging in connection.c (2)
Browse files Browse the repository at this point in the history
The previous workaround was not enough.
  • Loading branch information
herwinw committed Nov 27, 2016
1 parent 29742ca commit a1e33a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ fr_connection_pool_t *fr_connection_pool_init(TALLOC_CTX *ctx,
pool = talloc_zero(NULL, fr_connection_pool_t);
if (!pool) {
/* Simply using ERROR here results in a null pointer dereference */
_RADLOG(L_ERR, "%s: Out of memory", __FUNCTION__);
radlog(&default_log, L_ERR, "%s: Out of memory", __FUNCTION__);
return NULL;
}

Expand Down

0 comments on commit a1e33a1

Please sign in to comment.