|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: proxy and mydestination problem
From: Wietse Venema (wietse
porcupine.org)
Date: Thu Apr 01 2004 - 20:32:17 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Wietse Venema:
> martynas
inet.lt:
> > I get same error:
> >
> > Apr 2 01:44:25 srv2 postfix/proxymap[16950]: fatal: dict_register:
> > dictionary name exists: /etc/postfix/mysql-mydestination.cf
Hm. There could be a bug in the proxymap server.
In the code below, dict_register() should not be called when
dict_handle() returned success.
Does the patch below eliminate the problem?
Wietse
*** ./proxymap.c- Tue Apr 29 17:04:27 2003
--- ./proxymap.c Thu Apr 1 21:31:10 2004
***************
*** 215,225 ****
*/
vstring_sprintf(map_type_name_flags, "%s:%o",
map_type_name, request_flags);
! if ((dict = dict_handle(STR(map_type_name_flags))) == 0)
dict = dict_open(map_type_name, READ_OPEN_FLAGS, request_flags);
! if (dict == 0)
! msg_panic("proxy_map_find: dict_open null result");
! dict_register(STR(map_type_name_flags), dict);
return (dict);
}
--- 215,226 ----
*/
vstring_sprintf(map_type_name_flags, "%s:%o",
map_type_name, request_flags);
! if ((dict = dict_handle(STR(map_type_name_flags))) == 0) {
dict = dict_open(map_type_name, READ_OPEN_FLAGS, request_flags);
! if (dict == 0)
! msg_panic("proxy_map_find: dict_open null result");
! dict_register(STR(map_type_name_flags), dict);
! }
return (dict);
}
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]