Dominique Leuenberger 2017-12-08 12:01:49 +00:00 committed by Git OBS Bridge
commit 2884a70433
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,23 @@
--- kdc/kerberos5.c.orig
+++ kdc/kerberos5.c
@@ -2226,15 +2226,17 @@
/*
* In case of a non proxy error, build an error message.
*/
- if(ret != 0 && ret != HDB_ERR_NOT_FOUND_HERE && reply->length == 0) {
+ if (ret != 0 && ret != HDB_ERR_NOT_FOUND_HERE && reply->length == 0) {
ret = _kdc_fast_mk_error(context, r,
&error_method,
r->armor_crypto,
&req->req_body,
ret, r->e_text,
r->server_princ,
- &r->client_princ->name,
- &r->client_princ->realm,
+ r->client_princ ?
+ &r->client_princ->name : NULL,
+ r->client_princ ?
+ &r->client_princ->realm : NULL,
NULL, NULL,
reply);
if (ret)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 07 15:17:23 UTC 2017 - joerg.lorenzen@ki.tng.de
- Added Avoid_NULL_structure_pointer_member_dereference.patch,
fixes (bsc#1071675).
-------------------------------------------------------------------
Thu Aug 03 20:25:45 UTC 2017 - joerg.lorenzen@ki.tng.de

View File

@ -28,6 +28,7 @@ Url: http://www.h5l.org
Source0: heimdal-%{version}-patched.tar.bz2
Source2: heimdal-patch-source.sh
Patch0: heimdal-patched.diff
Patch1: Avoid_NULL_structure_pointer_member_dereference.patch
%if 0%{?sles_version} == 11
BuildRequires: libcom_err-devel
BuildRequires: sqlite3-devel
@ -49,6 +50,7 @@ BuildRequires: pam-devel
BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: texinfo
BuildRequires: perl(JSON)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -97,6 +99,7 @@ libraries are required by 64-bit package of ICAClient version 13.2.
%prep
%setup -q -n heimdal-%{version}
%patch0 -p1
%patch1 -p0
%build
autoreconf -fi