changed error messages in the case of faulty esp and ike strings
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 24 Nov 2009 15:45:52 +0000 (16:45 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 24 Nov 2009 15:45:52 +0000 (16:45 +0100)
src/pluto/connections.c

index 53d2ca3..a24f29d 100644 (file)
@@ -1059,15 +1059,14 @@ void add_connection(const whack_message_t *wm)
                        )
                        if (c->alg_info_esp)
                        {
-                               if (c->alg_info_esp->alg_info_cnt==0)
+                               if (c->alg_info_esp->alg_info_cnt == 0)
                                {
-                                        loglog(RC_LOG_SERIOUS
-                                                       , "got 0 transforms for esp=\"%s\"", wm->esp);
+                                        loglog(RC_LOG_SERIOUS, "got 0 esp transforms");
                                }
                        }
                        else
                        {
-                               loglog(RC_LOG_SERIOUS, "esp string error");
+                               loglog(RC_LOG_SERIOUS, "syntax error in esp string");
                        }
                }
 
@@ -1090,15 +1089,14 @@ void add_connection(const whack_message_t *wm)
                        )
                        if (c->alg_info_ike)
                        {
-                               if (c->alg_info_ike->alg_info_cnt==0)
+                               if (c->alg_info_ike->alg_info_cnt == 0)
                                {
-                                       loglog(RC_LOG_SERIOUS
-                                                  , "got 0 transforms for ike=\"%s\"", wm->ike);
+                                       loglog(RC_LOG_SERIOUS, "got 0 ike transforms");
                                }
                        }
                        else
                        {
-                               loglog(RC_LOG_SERIOUS, "ike string error:");
+                               loglog(RC_LOG_SERIOUS, "syntax error in ike string");
                        }
                }