Committer: Tim Just <tim.just@xxxxxxxxxxxxxx> Date: 25/03/2010 at 20:47:29 Revision: 3720 Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: tiny Log: Avoid invalid free. The shared key should be stored for each host association and is freed, when the hadb entry is deleted. Modified: M hipd/input.c === modified file 'hipd/input.c' --- hipd/input.c 2010-03-25 15:24:20 +0000 +++ hipd/input.c 2010-03-25 18:46:34 +0000 @@ -1561,9 +1561,6 @@ if (tmp_enc != NULL) { free(tmp_enc); } - if (ctx->hadb_entry->dh_shared_key != NULL) { - free(ctx->hadb_entry->dh_shared_key); - } if (err) { ctx->error = 1; }