struct sockaddr_in *sinp;
sinp= (struct sockaddr_in *)address;
- if (sinp->sin_family != AF_INET || address_len != sizeof(*sinp))
+ if (sinp->sin_family != AF_INET || address_len < sizeof(*sinp))
{
#if DEBUG
fprintf(stderr, "bind(tcp): sin_family = %d, len = %d\n",
struct sockaddr_in *sinp;
sinp= (struct sockaddr_in *)address;
- if (sinp->sin_family != AF_INET || address_len != sizeof(*sinp))
+ if (sinp->sin_family != AF_INET || address_len < sizeof(*sinp))
{
#if DEBUG
fprintf(stderr, "bind(udp): sin_family = %d, len = %d\n",