From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <7920067cf9fa2325929e33f0fdb11352@rei2.9hal> Date: Wed, 22 Aug 2012 09:11:20 -0400 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b343ccca1a7e804c7da7ac9 Subject: Re: [9fans] dns Topicbox-Message-UUID: adabf31e-ead7-11e9-9d60-3106f5b1d025 --047d7b343ccca1a7e804c7da7ac9 Content-Type: text/plain; charset=UTF-8 for(n = 0; n < Maxdest; n++, qp->curdest++) if (setdestoutns(qp->curdest, n) < 0) On 22 August 2012 09:05, erik quanstrom wrote: > since qb->curdest is indirected, for example by setdestoutns, this must be > a valid pointer to remain safe. > only when the pointer is valid. I think cinap is right. --047d7b343ccca1a7e804c7da7ac9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
for= (n =3D 0; n < Maxdest; n++, qp->curdest++)
if (setdestoutns(qp->= ;curdest, n) < 0)


On 22 August 2012 09:05, erik= quanstrom <quanstro@quanstro.net> wrote:
since qb->curdest is indirected, for example by setdest= outns, this must be
a valid pointer to remain safe.

only when = the pointer is valid. I think cinap is right.

--047d7b343ccca1a7e804c7da7ac9--