src/server/security-server-cookie.c
/* Cut the link of the current cookie item and connect previous link and next line *
 * That is remove a cookie item *
 * Returns next cookie item  if exist, NULL for no more cookie item */
Cut the link of the current cookie item and connect previous link and next line
That is remove a cookie item
Returns next cookie item  if exist, NULL for no more cookie item
Cut the link of the current cookie item and connect previous link and next line That is remove a cookie item Returns next cookie item if exist NULL for no more cookie item
cookie_list *delete_cookie_item(cookie_list *cookie)
{
	cookie_list *retval = NULL;
	if(cookie == NULL)
	{
		SEC_SVR_DBG("%s", "Cannot delete null cookie");
		return retval;
	}
	if(cookie->next != NULL)
	{
		cookie->prev->next = cookie->next;
		cookie->next->prev = cookie->prev;
		retval = cookie->next;
	}
	else
	{
		cookie->prev->next = NULL;
	}
	free_cookie_item(cookie);
	return retval;
}
cookie_list * delete_cookie_item ( cookie_list * cookie ) { cookie_list * retval = NULL ; if ( cookie == NULL ) { SEC_SVR_DBG ( " " , " " ) ; return retval ; } if ( cookie -> next != NULL ) { cookie -> prev -> next = cookie -> next ; cookie -> next -> prev = cookie -> prev ; retval = cookie -> next ; } else { cookie -> prev -> next = NULL ; } free_cookie_item ( cookie ) ; return retval ; }
Cut the link of the current cookie item and connect previous link and next line
 That is remove a cookie item
 Returns next cookie item  if exist, NULL for no more cookie item
Cut the link of the current cookie item and connect previous link and next line That is remove a cookie item Returns next cookie item if exist NULL for no more cookie item
/* Reconnect cookie item */