MT#59962 UACAuth: add explicit cast to int

Add cast to make it clear that this is an intentional truncation of a
time_t to an int.

Change-Id: I676f7eb30d4016a531e94975fb230c2d7c9aa9f7
Warned-by: Coverity
mr13.3.1
Richard Fuchs 1 year ago
parent d987917a70
commit 7d64a8e7d7

@ -606,7 +606,7 @@ string UACAuth::calcNonce() {
HASH RespHash;
time_t now = time(NULL);
result = int2hex(now);
result = int2hex(static_cast<unsigned int>(now));
MD5Init(&Md5Ctx);
w_MD5Update(&Md5Ctx, result);

Loading…
Cancel
Save