add: pdomain = d->d;
context: int register_pdomain(const char* _n, pdomain_t** _d){	dlist_t* d;	str s;	s.s = (char*)_n;	s.len = strlen(_n);	if (find_dlist(&s, &d) == 0) {	        *_d = d->d;		return 0;	}		if (new_dlist(&s, &d) < 0) {		LOG(L_ERR, "register_udomain(): Error while creating new domain\n");		return -1;	} 	     /* Preload domain with data from database if we are gonna	      * to use database	      */	d->next = root;	root = d;		*_d = d->d;	return 0;}