]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
python: Fix unintended fallthrough
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Mar 2025 18:37:14 +0000 (18:37 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Mar 2025 18:37:14 +0000 (18:37 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/database.c

index afce3c12a45f6e8b0f232977c71330a5bfa4aa62..c0d426498632cea1c00887883f17b77674970d2f 100644 (file)
@@ -213,6 +213,7 @@ static PyObject* Database_lookup(DatabaseObject* self, PyObject* args) {
                switch (errno) {
                        case EINVAL:
                                PyErr_Format(PyExc_ValueError, "Invalid IP address: %s", address);
+                               return NULL;
 
                        default:
                                PyErr_SetFromErrno(PyExc_OSError);