genericopenlibs/openenvcore/backend/src/corebackend/ufilesocket.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
   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;
   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.
   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.
   484 		if( (aAddrLen != 0) && (*aAddrLen < sizeof(((struct sockaddr_un*)aAddr)->sun_family)) )
   485 		if( (aAddrLen != 0) && (*aAddrLen < sizeof(addr->sun_family)) )
   485             {
   486             {
   486             return KErrNone;
   487             return KErrNone;
   487             }
   488             }
   488 		    
   489 		    
   489 		if(ret == KErrNone)
   490 		if(ret == KErrNone)