summaryrefslogtreecommitdiff
path: root/libiohelp/return-buffer.c
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2010-10-11 17:07:53 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-10-11 18:11:43 +0200
commit0b32d1eb64aeb9684b4f0800f9c1fdbe5d6c7b00 (patch)
tree203e4198b95cf57234dce54def83d87fe224888a /libiohelp/return-buffer.c
parent22bc9da3dd61c6b12f8d03946ef75ec9cfb88a22 (diff)
Fix return value on `getname' errors.
This fixes the errno return value for getpeername() calls on not connected sockets: the return value of the `getname' call comes from the Linux code, so it is a negative value, in case of error. * pfinet/misc.c (make_sockaddr_port): Turn negative error values returned by `getname' calls into positive values before returning it.
Diffstat (limited to 'libiohelp/return-buffer.c')
0 files changed, 0 insertions, 0 deletions