src/server/security-server-cookie.c
/* Search existing cookie from the cookie list for matching pid *
 * Default cookie (meaning PID 0) is not allowed in here */
Search existing cookie from the cookie list for matching pid
Default cookie (meaning PID 0) is not allowed in here
Search existing cookie from the cookie list for matching pid Default cookie ( meaning PID 0 ) is not allowed in here
cookie_list *search_cookie_from_pid(cookie_list *c_list, int pid)
{
	cookie_list *current = (cookie_list *)c_list, *retval = NULL;
	while(current != NULL)
	{
		current = garbage_collection(current);
		if(current == NULL)
			break;
		if(current->pid == pid)
		{
			SEC_SVR_DBG("%s", "cookie has been found");
			retval = current;
			goto finish;
		}
		current = current->next;
	}
finish:
	return retval;
}
cookie_list * search_cookie_from_pid ( cookie_list * c_list , int pid ) { cookie_list * current = ( cookie_list * ) c_list , * retval = NULL ; while ( current != NULL ) { current = garbage_collection ( current ) ; if ( current == NULL ) break ; if ( current -> pid == pid ) { SEC_SVR_DBG ( " " , " " ) ; retval = current ; goto finish ; } current = current -> next ; } finish : return retval ; }
Search existing cookie from the cookie list for matching pid
 Default cookie (meaning PID 0) is not allowed in here
Search existing cookie from the cookie list for matching pid Default cookie ( meaning PID 0 ) is not allowed in here
/* Search from the list */ /* print_cookie(current);*/ /* PID must be same */