SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
17
security/cyrus-sasl2/patches/patch-lib_saslutil_c
Normal file
17
security/cyrus-sasl2/patches/patch-lib_saslutil_c
Normal file
|
@ -0,0 +1,17 @@
|
|||
64-bit time_t
|
||||
|
||||
Index: lib/saslutil.c
|
||||
--- lib/saslutil.c.orig
|
||||
+++ lib/saslutil.c
|
||||
@@ -280,9 +280,9 @@ int sasl_mkchal(sasl_conn_t *conn,
|
||||
time(&now);
|
||||
|
||||
if (hostflag && conn->serverFQDN)
|
||||
- snprintf(buf,maxlen, "<%lu.%lu@%s>", randnum, (unsigned long)now, conn->serverFQDN); /* don't care much about time 32bit overlap */
|
||||
+ snprintf(buf,maxlen, "<%lu.%lld@%s>", randnum, now, conn->serverFQDN); /* don't care much about time 32bit overlap */
|
||||
else
|
||||
- snprintf(buf,maxlen, "<%lu.%lu>", randnum, (unsigned long)now);
|
||||
+ snprintf(buf,maxlen, "<%lu.%lld>", randnum, now);
|
||||
|
||||
return (int) strlen(buf);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue