mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:dns_server: Remove less-than-zero comparison of an unsigned value
This will never be true. Found by covscan Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
90fd7674f8
commit
116123e921
@ -388,7 +388,7 @@ static PyObject *py_dsdb_dns_timestamp_to_nt_time(PyObject *self, PyObject *args
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (timestamp > UINT32_MAX || timestamp < 0) {
|
||||
if (timestamp > UINT32_MAX) {
|
||||
PyErr_SetString(PyExc_ValueError, "Time out of range");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user