]> git.sur5r.net Git - openldap/commitdiff
Checking uninitialized variables.
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 10 Apr 2000 12:11:20 +0000 (12:11 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 10 Apr 2000 12:11:20 +0000 (12:11 +0000)
Add addresses optimization to rfc822-ext too.

clients/mail500/main.c

index 38d0521ee3d6bda730397515cf0a9a40c8fb25e3..3fb309bf9f13a73c556bddae62faca58141fc04d 100644 (file)
@@ -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: