diff 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
line wrap: on
line diff
--- a/src/context.cpp	Mon Dec 19 15:32:32 2016 -0800
+++ b/src/context.cpp	Mon Dec 19 16:35:49 2016 -0800
@@ -1002,6 +1002,7 @@
 
 
 const char *CONTEXT::find_dkim_signer(const char *name) {
+    if (!name) return NULL;
     string_map::iterator i = dkim_signer_names.find(name);
     if (i != dkim_signer_names.end()) return (*i).second;
     if (parent) return parent->find_dkim_signer(name);
@@ -1010,6 +1011,7 @@
 
 
 DKIMP CONTEXT::find_dkim_from(const char *name) {
+    if (!name) return NULL;
     dkimp_map::iterator i = dkim_from_names.find(name);
     if (i != dkim_from_names.end()) return (*i).second;
     if (parent) return parent->find_dkim_from(name);