Avoid copying buffer after dn_expand() fails
authorBen Hutchings <ben@decadent.org.uk>
Fri, 22 Jan 2016 20:15:31 +0000 (20:15 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 13:28:25 +0000 (13:28 +0000)
commit121a043f6dd1b6c6171dae3c041cb50693eae63f
treee144c4c9045da7ed6fa2d3a0f0a0ab94c9881532
parent4f9eded5cff092772fdc2bdeafc8647dae826390
Avoid copying buffer after dn_expand() fails

If dn_expand() returns an error we could copy from an uninitialised
output buffer or append the previous domain name again.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
src/script.c