X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/5122e997b817982e567ac8959bcb3aa7a6dd5cf7..d1e348cfd503b08e7d34b7683d23aae209af0a71:/ipsec-tools/racoon/logger.c diff --git a/ipsec-tools/racoon/logger.c b/ipsec-tools/racoon/logger.c index 03a3ac6..b9ac558 100644 --- a/ipsec-tools/racoon/logger.c +++ b/ipsec-tools/racoon/logger.c @@ -87,7 +87,7 @@ log_open(siz, fname) p->siz = siz; if (fname) - p->fname = strdup(fname); + p->fname = racoon_strdup(fname); return p; } @@ -105,7 +105,7 @@ log_add(p, str) /* syslog if p->fname == NULL? */ if (p->buf[p->head]) racoon_free(p->buf[p->head]); - p->buf[p->head] = strdup(str); + p->buf[p->head] = racoon_strdup(str); p->tbuf[p->head] = time(NULL); p->head++; p->head %= p->siz;