mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 13:09:42 -05:00
Checking uninitialized variables.
Add addresses optimization to rfc822-ext too.
This commit is contained in:
parent
36a4ed4f59
commit
0dbd442090
1 changed files with 5 additions and 3 deletions
|
|
@ -1082,7 +1082,7 @@ is_my_host(
|
|||
{
|
||||
char **d;
|
||||
|
||||
if ( d == NULL )
|
||||
if ( myhosts == NULL )
|
||||
return 0;
|
||||
for ( d = myhosts; *d; d++ ) {
|
||||
if ( !strcasecmp(*d,host) ) {
|
||||
|
|
@ -1100,7 +1100,7 @@ is_my_domain(
|
|||
char **d;
|
||||
char *p;
|
||||
|
||||
if ( d == NULL )
|
||||
if ( mydomains == NULL )
|
||||
return 0;
|
||||
p = strchr( address, '@' );
|
||||
if ( p == NULL)
|
||||
|
|
@ -1230,7 +1230,9 @@ entry_engine(
|
|||
resolved = 1;
|
||||
break;
|
||||
case AS_SYNTAX_RFC822_EXT:
|
||||
add_to( current_to, current_nto, vals );
|
||||
do_addresses( vals, current_to, current_nto,
|
||||
togroups, ngroups, err, nerr,
|
||||
USER );
|
||||
resolved = 1;
|
||||
break;
|
||||
case AS_SYNTAX_NATIVE_MB:
|
||||
|
|
|
|||
Loading…
Reference in a new issue