Blame SOURCES/libtirpc-1.3.3-blacklist-close.patch

0ddb94
commit a013336ecdc476d7357398d9cd24b114070bb767
0ddb94
Author: Rosen Penev <rosenp@gmail.com>
0ddb94
Date:   Tue Oct 25 12:34:56 2022 -0400
0ddb94
0ddb94
    Add missing extern
0ddb94
    
0ddb94
    Fixes compilation warning.
0ddb94
    
0ddb94
    Signed-off-by: Rosen Penev <rosenp@gmail.com>
0ddb94
    Signed-off-by: Steve Dickson <steved@redhat.com>
0ddb94
0ddb94
diff --git a/src/svc_auth.c b/src/svc_auth.c
0ddb94
index ce8bbd8..789d6af 100644
0ddb94
--- a/src/svc_auth.c
0ddb94
+++ b/src/svc_auth.c
0ddb94
@@ -66,6 +66,9 @@ static struct authsvc *Auths = NULL;
0ddb94
 
0ddb94
 extern SVCAUTH svc_auth_none;
0ddb94
 
0ddb94
+#ifdef AUTHDES_SUPPORT
0ddb94
+extern enum auth_stat _svcauth_des(struct svc_req *rqst, struct rpc_msg *msg);
0ddb94
+#endif
0ddb94
 /*
0ddb94
  * The call rpc message, msg has been obtained from the wire.  The msg contains
0ddb94
  * the raw form of credentials and verifiers.  authenticate returns AUTH_OK
0ddb94
0ddb94
commit 55526c52a449907e4d34b829b96141afab530b23
0ddb94
Author: Zhi Li <yieli@redhat.com>
0ddb94
Date:   Mon Oct 24 13:46:54 2022 -0400
0ddb94
0ddb94
    bindresvport.c: fix a potential resource leakage
0ddb94
    
0ddb94
    Close the FILE *fp of load_blacklist() in another
0ddb94
    return path to avoid potential resource leakage.
0ddb94
    
0ddb94
    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2135405
0ddb94
    Signed-off-by: Zhi Li <yieli@redhat.com>
0ddb94
    Signed-off-by: Steve Dickson <steved@redhat.com>
0ddb94
0ddb94
diff --git a/src/bindresvport.c b/src/bindresvport.c
0ddb94
index 5c0ddcf..efeb1cc 100644
0ddb94
--- a/src/bindresvport.c
0ddb94
+++ b/src/bindresvport.c
0ddb94
@@ -130,6 +130,7 @@ load_blacklist (void)
0ddb94
 	  if (list == NULL)
0ddb94
 	    {
0ddb94
 	      free (buf);
0ddb94
+	      fclose (fp);
0ddb94
 	      return;
0ddb94
 	    }
0ddb94
 	}