add: si->socket=-1;
context: static inline struct socket_info* new_sock_info(	char* name,								unsigned short port, unsigned short proto,								enum si_flags flags){	struct socket_info* si;		si=(struct socket_info*) pkg_malloc(sizeof(struct socket_info));	if (si==0) goto error;	memset(si, 0, sizeof(struct socket_info));	si->name.len=strlen(name);	si->name.s=(char*)pkg_malloc(si->name.len+1); /* include \0 */	if (si->name.s==0) goto error;	memcpy(si->name.s, name, si->name.len+1);	/* set port & proto */	si->port_no=port;	si->proto=proto;	si->flags=flags;	return si;error:	LOG(L_ERR, "ERROR: new_sock_info: memory allocation error\n");	if (si) pkg_free(si);	return 0;}