diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /app-crypt/seahorse/files | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'app-crypt/seahorse/files')
-rw-r--r-- | app-crypt/seahorse/files/seahorse-40.0-fix-segfault-with-ldap-disabled.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-crypt/seahorse/files/seahorse-40.0-fix-segfault-with-ldap-disabled.patch b/app-crypt/seahorse/files/seahorse-40.0-fix-segfault-with-ldap-disabled.patch new file mode 100644 index 000000000000..8454a0388ea0 --- /dev/null +++ b/app-crypt/seahorse/files/seahorse-40.0-fix-segfault-with-ldap-disabled.patch @@ -0,0 +1,29 @@ +From 6fc0e3e321cdf0bf7e047234561fe8a8084a93f9 Mon Sep 17 00:00:00 2001 +From: Xi Ruoyao <xry111@mengyan1223.wang> +Date: Wed, 14 Apr 2021 23:18:06 +0800 +Subject: [PATCH] Fix segfault when built with ldap disabled + +Fixes #321. +--- + pgp/seahorse-pgp-backend.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/pgp/seahorse-pgp-backend.c b/pgp/seahorse-pgp-backend.c +index 25febf31..8c10e7e3 100644 +--- a/pgp/seahorse-pgp-backend.c ++++ b/pgp/seahorse-pgp-backend.c +@@ -445,7 +445,10 @@ seahorse_pgp_backend_add_remote (SeahorsePgpBackend *self, + /* Don't persist, so just immediately create a ServerSource */ + g_autoptr(SeahorseServerSource) ssrc = NULL; + ssrc = seahorse_server_category_create_server (uri); +- g_list_store_append (G_LIST_STORE (self->remotes), ssrc); ++ /* If the scheme of the uri is ldap, but ldap support is disabled ++ * in the build, ssrc will be NULL. */ ++ if (ssrc) ++ g_list_store_append (G_LIST_STORE (self->remotes), ssrc); + } + } + +-- +GitLab + |