chiark / gitweb /
server/admin: Brown-paper-bag fix.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 8 Dec 2008 20:14:24 +0000 (20:14 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 8 Dec 2008 20:22:03 +0000 (20:22 +0000)
commit6f88042a4307bec23ed4d451f320b46c9ec7602f
tree3d48c0393badc824ef0e1a9d073a8bc6da7d5960
parent7797fd5ae6a8a4823e9e4565fdbaaa67b22a6710
server/admin: Brown-paper-bag fix.

Commit 165efde7 changed a_resolve to not require a port number.
Unfortunately, I botched it and wrote a test for av[i + 1] as
av[i + i].  Result with i = 0: very different.

While investigating this bug, I became nervous about the number of
is-av[i]-null tests going on when str_qsplit doesn't actually guarantee
to leave a null terminator behind if it uses all the array slots.  So
I've allocated an extra slot and zeroed it explicitly.
server/admin.c