- Added Avoid_NULL_structure_pointer_member_dereference.patch, fixes (bsc#1071675). OBS-URL: https://build.opensuse.org/request/show/555082 OBS-URL: https://build.opensuse.org/package/show/network/libheimdal?expand=0&rev=17
24 lines
740 B
Diff
24 lines
740 B
Diff
--- 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)
|