diff options
Diffstat (limited to 'source3/python')
-rw-r--r-- | source3/python/py_tdbpack.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/python/py_tdbpack.c b/source3/python/py_tdbpack.c index 8478ab28a5..6c697533a0 100644 --- a/source3/python/py_tdbpack.c +++ b/source3/python/py_tdbpack.c @@ -307,7 +307,8 @@ pytdbpack_calc_reqd_len(char *format_str, if (val_i >= val_len) { PyErr_Format(PyExc_IndexError, - "samba.tdbpack.pack: value list is too short for format string"); + "%s: value list is too short for format string", + __FUNCTION__); return -1; } @@ -323,13 +324,6 @@ pytdbpack_calc_reqd_len(char *format_str, len += item_len; } - if (val_i != val_len) { - PyErr_Format(PyExc_IndexError, - "%s: value list is wrong length for format string", - __FUNCTION__); - return -1; - } - return len; } |