Commit 436db666 authored by Bob Halley's avatar Bob Halley
Browse files

convert ISC_R_TOOSMALL to ISC_R_NOSPACE

parent af0fce40
......@@ -2284,7 +2284,7 @@ isc_socket_getpeername(isc_socket_t *sock, isc_sockaddr_t *addressp,
if (*lengthp < sock->addrlength) {
UNLOCK(&sock->lock);
return (ISC_R_TOOSMALL);
return (ISC_R_NOSPACE);
}
memcpy(addressp, &sock->address, (size_t)sock->addrlength);
......@@ -2318,7 +2318,7 @@ isc_socket_getsockname(isc_socket_t *sock, isc_sockaddr_t *addressp,
if (*lengthp < sock->addrlength) {
UNLOCK(&sock->lock);
return (ISC_R_TOOSMALL);
return (ISC_R_NOSPACE);
}
memcpy(addressp, &sock->address, (size_t)sock->addrlength);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment