[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/src
From: |
shishi-commit |
Subject: |
CVS shishi/src |
Date: |
Mon, 14 Mar 2005 15:28:02 +0100 |
Update of /home/cvs/shishi/src
In directory dopio:/tmp/cvs-serv25852
Modified Files:
kdc.c
Log Message:
Avoid strnlen (only used once).
--- /home/cvs/shishi/src/kdc.c 2004/10/15 11:05:58 1.50
+++ /home/cvs/shishi/src/kdc.c 2005/03/14 14:28:02 1.51
@@ -1,5 +1,5 @@
/* kdc.c --- Process AS and TGS requests.
- * Copyright (C) 2002, 2003, 2004 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2005 Simon Josefsson
*
* This file is part of Shishi.
*
@@ -350,16 +350,16 @@
goto fatal;
}
- if (tilllen != 16 || strnlen (till, tilllen) != 15)
+ if (tilllen != 16 || strlen (till) != 15)
{
syslog (LOG_ERR, "Invalid 'till' field in request (%d): %s", tilllen,
till);
goto fatal;
}
- rc =
- shishi_encticketpart_endtime_set (handle,
- shishi_tkt_encticketpart (tkt), till);
+ rc = shishi_encticketpart_endtime_set (handle,
+ shishi_tkt_encticketpart (tkt),
+ till);
free (till);
}
- CVS shishi/src, shishi-commit, 2005/03/14
- CVS shishi/src,
shishi-commit <=