File openssh-7.9p1-gsissh-fix-SLE_15_SP1.patch of Package gsi-openssh

diff -Nur openssh-7.9p1.orig/auth2-gss.c openssh-7.9p1/auth2-gss.c
--- openssh-7.9p1.orig/auth2-gss.c	2020-04-24 16:42:03.721181618 +0200
+++ openssh-7.9p1/auth2-gss.c	2020-04-24 16:43:19.244388650 +0200
@@ -82,6 +82,9 @@
 	gssbuf.value = sshbuf_mutable_ptr(b);
 	gssbuf.length = sshbuf_len(b);
 
+	if ((b2 = sshbuf_new()) == NULL)
+                fatal("%s: sshbuf_new failed", __func__);
+
 	/* client may have used empty username to determine target
 	   name from GSSAPI context */
 	ssh_gssapi_buildmic(b2, "", authctxt->service, "gssapi-keyex");
openSUSE Build Service is sponsored by