noip.c (get{sock,peer}name): Don't clobber `errno'.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 18:47:43 +0000 (19:47 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:13:05 +0000 (20:13 +0100)
commit0415c10ef65d4e244acd6fca4610639ca2d9c2f3
tree5d1c631e0de588286c84c42c4b1a0f5184f222b0
parentf47a2b17e1b05f79b12dda93230328281a1a3a79
noip.c (get{sock,peer}name): Don't clobber `errno'.

We might return a failure here, if the underlying syscall fails, and
should propagate the `errno' it returned.

Also hoist out some block-scope variables now that their enclosing block
has vanished.
noip.c