equal
deleted
inserted
replaced
478 |
478 |
479 ret = CSockDescBase::SockName(anEnd,lSockAddr); |
479 ret = CSockDescBase::SockName(anEnd,lSockAddr); |
480 if( ret == EFAULT ) |
480 if( ret == EFAULT ) |
481 return ret; |
481 return ret; |
482 |
482 |
483 struct sockaddr_un* addr = (struct sockaddr_un*)aAddr; |
|
484 // If the length passed is greater than or equal to 0 but less than the first field i.e sun_family , return kErrnone and dont fill any field into aAddr structure passed. |
483 // If the length passed is greater than or equal to 0 but less than the first field i.e sun_family , return kErrnone and dont fill any field into aAddr structure passed. |
485 if( (aAddrLen != 0) && (*aAddrLen < sizeof(addr->sun_family)) ) |
484 if( (aAddrLen != 0) && (*aAddrLen < sizeof(((struct sockaddr_un*)aAddr)->sun_family)) ) |
486 { |
485 { |
487 return KErrNone; |
486 return KErrNone; |
488 } |
487 } |
489 |
488 |
490 if(ret == KErrNone) |
489 if(ret == KErrNone) |