Cast to size_t to remove warning. Cvs:
* gnuserv.c: (permitted): Cast to size_t to remove warning. Cvs: ----------------------------------------------------------------------
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2004-05-25 Benoît Dejean <tazforever@dlfp.org>
|
||||||
|
|
||||||
|
* gnuserv.c: (permitted): Cast to size_t to remove warning.
|
||||||
|
|
||||||
2004-03-04 Bastien Nocera <hadess@hadess.net>
|
2004-03-04 Bastien Nocera <hadess@hadess.net>
|
||||||
|
|
||||||
* Makefile.am:
|
* Makefile.am:
|
||||||
|
@@ -203,7 +203,7 @@ permitted (u_long host_addr, int fd)
|
|||||||
|
|
||||||
auth_data_len = atoi (buf);
|
auth_data_len = atoi (buf);
|
||||||
|
|
||||||
if (auth_data_len < 1 || auth_data_len > sizeof(buf)) {
|
if (auth_data_len < 1 || (size_t)auth_data_len > sizeof(buf)) {
|
||||||
syslog_message(LOG_WARNING, "Invalid data length supplied by client");
|
syslog_message(LOG_WARNING, "Invalid data length supplied by client");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user