File openssh-8.1p1-gsissh-fix-openSUSE_Leap_15.2.patch of Package gsi-openssh
diff -Nur openssh-8.1p1.orig/auth2-gss.c openssh-8.1p1/auth2-gss.c
--- openssh-8.1p1.orig/auth2-gss.c 2020-04-30 17:38:45.264928880 +0200
+++ openssh-8.1p1/auth2-gss.c 2020-04-30 17:42:13.245790659 +0200
@@ -73,7 +73,7 @@
fatal("%s: %s", __func__, ssh_err(r));
if ((b = sshbuf_new()) == NULL)
- fatal("%s: sshbuf_new failed", __func__);
+ fatal("%s: sshbuf_new failed for b", __func__);
mic.value = p;
mic.length = len;
@@ -85,6 +85,9 @@
fatal("%s: sshbuf_mutable_ptr failed", __func__);
gssbuf.length = sshbuf_len(b);
+ if ((b2 = sshbuf_new()) == NULL)
+ fatal("%s: sshbuf_new failed for b2", __func__);
+
/* client may have used empty username to determine target
name from GSSAPI context */
ssh_gssapi_buildmic(b2, "", authctxt->service, "gssapi-keyex");