Change-Id: Ie2d0939e43080aa2c7937f912d13ece6c39fdb9c
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
int option;
int sd_num = 0;
int rv;
+ int is_socket_inet = 0;
#endif
DBG("family %d protocol %d index %d", family, protocol, index);
rv = sd_is_socket_inet(sk, family, type, -1, 53);
if(rv > 0){
DBG("socket fd (%d) is passed by systemd", sk);
+ is_socket_inet = 1;
break;
}
}
- if(sk >= SD_LISTEN_FDS_START+sd_num){
+ if (!is_socket_inet) {
DBG("socket fd is not matched what connman requests");
return NULL;
}