OSDN Git Service

fix dn_expand empty name handling and offsets to 0
authorSzabolcs Nagy <nsz@port70.net>
Thu, 4 Sep 2014 16:29:16 +0000 (18:29 +0200)
committerRich Felker <dalias@aerifal.cx>
Fri, 5 Sep 2014 00:13:10 +0000 (20:13 -0400)
commit49d2c8c6bcf8c926e52c7f510033b6adc31355f5
tree3575bf95f7d7e69e066d6388f283717b2d5fff16
parent70729de075bfe3138b05af91ecefcd5786bed5ac
fix dn_expand empty name handling and offsets to 0

Empty name was rejected in dn_expand since commit
56b57f37a46dab432247bf29d96fcb11fbd02a6d
which is a regression as reported by Natanael Copa.

Furthermore if an offset pointer in a compressed name
pointed to a terminating 0 byte (instead of a label)
the returned name was not null terminated.
src/network/dn_expand.c