fixed compile error if --enable-p2p is set
authorMartin Willi <martin@strongswan.org>
Wed, 26 Mar 2008 14:45:24 +0000 (14:45 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 26 Mar 2008 14:45:24 +0000 (14:45 -0000)
src/charon/plugins/stroke/stroke_config.c
src/charon/plugins/stroke/stroke_cred.c

index c8ab12c..8c149d0 100644 (file)
@@ -425,7 +425,7 @@ static peer_cfg_t *build_peer_cfg(private_stroke_config_t *this,
        else
        {
                /* no peer ID supplied, assume right ID */
-               peer_id = other_id->clone(other_id);
+               peer_id = other->clone(other);
        }
 #endif /* P2P */
        
index 94c7984..036bd38 100644 (file)
@@ -204,7 +204,7 @@ static enumerator_t* create_cert_enumerator(private_stroke_cred_t *this,
        {
                if (trusted)
                {
-                       return FALSE;
+                       return NULL;
                }
                
                data = malloc_thing(id_data_t);