output peer id if RSA public key is not found
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 2 Feb 2007 11:04:05 +0000 (11:04 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 2 Feb 2007 11:04:05 +0000 (11:04 -0000)
src/pluto/ipsec_doi.c

index f35b5f9..306f7d2 100644 (file)
@@ -1772,7 +1772,7 @@ RSA_check_signature(const struct id* peer
     {
        char id_buf[BUF_LEN];   /* arbitrary limit on length of ID reported */
 
     {
        char id_buf[BUF_LEN];   /* arbitrary limit on length of ID reported */
 
-       (void) idtoa(&st->st_connection->spd.that.id, id_buf, sizeof(id_buf));
+       (void) idtoa(peer, id_buf, sizeof(id_buf));
 
        if (s.best_ugh == NULL)
        {
 
        if (s.best_ugh == NULL)
        {