Browse Source

fix client securechannel (#1305)

* Update ua_client_connect.c

* Update ua_client_connect.c

* forcing appveyor rebuild

see https://ci.appveyor.com/project/open62541/open62541/build/4331/job/nrahl5nu9jseqfou
StalderT 7 years ago
parent
commit
9c1767841e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/client/ua_client_connect.c

+ 3 - 2
src/client/ua_client_connect.c

@@ -181,9 +181,10 @@ openSecureChannel(UA_Client *client, UA_Boolean renew) {
     UA_OpenSecureChannelResponse response;
     retval = receiveServiceResponse(client, &response,
                                     &UA_TYPES[UA_TYPES_OPENSECURECHANNELRESPONSE],
-                                    UA_DateTime_nowMonotonic() + (UA_DateTime)
-                                    ((UA_Double)client->config.timeout * UA_DATETIME_TO_MSEC),
+                                    UA_DateTime_nowMonotonic() +
+                                    ((UA_DateTime)client->config.timeout * UA_MSEC_TO_DATETIME),
                                     &requestId);
+                                    
     if(retval != UA_STATUSCODE_GOOD) {
         UA_Client_disconnect(client);
         return retval;