comparison src/context.cpp @ 332:ed04479a8e12

allow missing domain in header from value
author Carl Byington <carl@five-ten-sg.com>
date Mon, 19 Dec 2016 16:35:49 -0800
parents 9800776436b9
children 17f21fcd44a8
comparison
equal deleted inserted replaced
331:9800776436b9 332:ed04479a8e12
1000 return NULL; 1000 return NULL;
1001 } 1001 }
1002 1002
1003 1003
1004 const char *CONTEXT::find_dkim_signer(const char *name) { 1004 const char *CONTEXT::find_dkim_signer(const char *name) {
1005 if (!name) return NULL;
1005 string_map::iterator i = dkim_signer_names.find(name); 1006 string_map::iterator i = dkim_signer_names.find(name);
1006 if (i != dkim_signer_names.end()) return (*i).second; 1007 if (i != dkim_signer_names.end()) return (*i).second;
1007 if (parent) return parent->find_dkim_signer(name); 1008 if (parent) return parent->find_dkim_signer(name);
1008 return NULL; 1009 return NULL;
1009 } 1010 }
1010 1011
1011 1012
1012 DKIMP CONTEXT::find_dkim_from(const char *name) { 1013 DKIMP CONTEXT::find_dkim_from(const char *name) {
1014 if (!name) return NULL;
1013 dkimp_map::iterator i = dkim_from_names.find(name); 1015 dkimp_map::iterator i = dkim_from_names.find(name);
1014 if (i != dkim_from_names.end()) return (*i).second; 1016 if (i != dkim_from_names.end()) return (*i).second;
1015 if (parent) return parent->find_dkim_from(name); 1017 if (parent) return parent->find_dkim_from(name);
1016 return NULL; 1018 return NULL;
1017 } 1019 }