]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb: Fix building with FORTIFY_SOURCE=2
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 28 Sep 2023 03:36:07 +0000 (16:36 +1300)
committerJoseph Sutton <jsutton@samba.org>
Sun, 1 Oct 2023 22:45:38 +0000 (22:45 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tools/ldbmodify.c

index 73df41787e238ba43780ba7a52d9354e8449f5d9..2eb8bcc300230e34af647e792802ff85db2e57e6 100644 (file)
@@ -102,6 +102,9 @@ static int process_file(struct ldb_context *ldb, FILE *f, unsigned int *count)
                                }
                        }
                        break;
+               default:
+                       ret = LDB_ERR_PROTOCOL_ERROR;
+                       break;
                }
                if (ret != LDB_SUCCESS) {
                        if (errstr == NULL) {