mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-21 02:34:16 +00:00
windows compiler fixes and switch_mprintf overflow(32bit only)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15286 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1200a12721
commit
3aa5055bf1
2 files changed
+8
-3
No files matched your search
@@ -2083,7 +2083,12 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
|
||||
char *sql;
|
||||
|
||||
x = get_nc(nc, sip);
|
||||
sql = switch_mprintf("update sip_authentication set expires='%ld',last_nc=%lu where nonce='%s'",
|
||||
#ifdef _WIN32 && !_WIN64
|
||||
#define LL_FMT "ll"
|
||||
#else
|
||||
#define LL_FMT "l"
|
||||
#endif
|
||||
sql = switch_mprintf("update sip_authentication set expires='%"LL_FMT"u',last_nc=%lu where nonce='%s'",
|
||||
switch_epoch_time_now(NULL) + (profile->nonce_ttl ? profile->nonce_ttl : exptime + 10), x, nonce);
|
||||
|
||||
switch_assert(sql != NULL);
|
||||
|
||||
Reference in new issue
Block a user