don't touch free'ed memory. From: wang.zhong3@zte.com.cn, sync w/kame

This commit is contained in:
itojun 2002-09-03 14:38:13 +00:00
parent 4fc0806163
commit 42ebaa698b
1 changed files with 1 additions and 1 deletions

View File

@ -77,8 +77,8 @@ log_open(siz, fname)
p->tbuf = (time_t *)racoon_malloc(sizeof(time_t *) * siz);
if (p->tbuf == NULL) {
racoon_free(p);
racoon_free(p->buf);
racoon_free(p);
return NULL;
}
memset(p->tbuf, 0, sizeof(time_t *) * siz);