Index: /branches/rel_apv_10_7/usr/click/lib/libexauth/auth_ext_cli.c
===================================================================
--- /branches/rel_apv_10_7/usr/click/lib/libexauth/auth_ext_cli.c	(revision 38983)
+++ /branches/rel_apv_10_7/usr/click/lib/libexauth/auth_ext_cli.c	(working copy)
@@ -240,7 +240,7 @@
         char *id = "es03";
         int id_num = -1;
         char *str_num = NULL, *ep = NULL;
-
+        struct sockaddr_in sa;
 
         if (id == NULL || host == NULL || dn == NULL || memberOf == NULL)
         {
@@ -271,6 +271,13 @@
                 strcpy(g_exauth_conf.exauth_servers[id_num].id, EXAUTH_SERVER_ID3);
         }
 
+        /* check if it is a valid ip address */
+        if (inet_pton(AF_INET, host, &(sa.sin_addr)) != 1)
+        {
+            printf("Invalid IP address: %s\n", host);
+            return -1;
+        }
+
         /*assign host*/
         strncpy(g_exauth_conf.exauth_servers[id_num].host, host, HOST_LEN);
 
