axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r478978 - /webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c
Date Fri, 24 Nov 2006 20:18:28 GMT
Author: dinesh
Date: Fri Nov 24 12:18:26 2006
New Revision: 478978

URL: http://svn.apache.org/viewvc?view=rev&rev=478978
Log:
when we use default time to value rampart segfaults. That is because in log function we passed
a integer with a string format.
Changed it to integer format.

Modified:
    webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c

Modified: webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c?view=diff&rev=478978&r1=478977&r2=478978
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c (original)
+++ webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c Fri Nov 24 12:18:26
2006
@@ -249,11 +249,14 @@
                     AXIS2_LOG_INFO(env->log, "[rampart][rampart_out_handler]  building
Timestamp Token");
                     ttl_str = RAMPART_ACTIONS_GET_TIME_TO_LIVE(actions, env);
                     /*Check for the ttl. If not specified use the default*/
-                    if(!ttl_str){
-                        AXIS2_LOG_INFO(env->log, "[rampart][rampart_out_handler]  Using
default timeToLive value %s",
+                    if(!ttl_str)
+					{
+                        AXIS2_LOG_INFO(env->log, "[rampart][rampart_out_handler]  Using
default timeToLive value %d",
                                 RAMPART_TIMESTAMP_TOKEN_DEFAULT_TIME_TO_LIVE);
                         ttl = RAMPART_TIMESTAMP_TOKEN_DEFAULT_TIME_TO_LIVE;
-                    }else{
+                    }
+					else
+					{
                         ttl = atoi(RAMPART_ACTIONS_GET_TIME_TO_LIVE(actions, env));
                     }
 
@@ -297,6 +300,3 @@
     }
     return AXIS2_SUCCESS;
 }
-
-
-



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message