Date: Tue, 27 Aug 2013 11:50:33 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254955 - head/usr.sbin/rtadvd Message-ID: <201308271150.r7RBoXhl028284@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hrs Date: Tue Aug 27 11:50:33 2013 New Revision: 254955 URL: http://svnweb.freebsd.org/changeset/base/254955 Log: Fix a crash when reloading the configuration file. Spotted by: des Modified: head/usr.sbin/rtadvd/config.c Modified: head/usr.sbin/rtadvd/config.c ============================================================================== --- head/usr.sbin/rtadvd/config.c Tue Aug 27 06:50:46 2013 (r254954) +++ head/usr.sbin/rtadvd/config.c Tue Aug 27 11:50:33 2013 (r254955) @@ -296,10 +296,8 @@ rm_rainfo(struct rainfo *rai) if (rai->rai_ra_data != NULL) free(rai->rai_ra_data); - while ((pfx = TAILQ_FIRST(&rai->rai_prefix)) != NULL) { - TAILQ_REMOVE(&rai->rai_prefix, pfx, pfx_next); - free(pfx); - } + while ((pfx = TAILQ_FIRST(&rai->rai_prefix)) != NULL) + delete_prefix(pfx); while ((sol = TAILQ_FIRST(&rai->rai_soliciter)) != NULL) { TAILQ_REMOVE(&rai->rai_soliciter, sol, sol_next); free(sol);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308271150.r7RBoXhl028284>