Blame SOURCES/nfs-utils-2.3.3-covscan-return-value.patch

8a02d7
diff -up nfs-utils-2.3.3/support/export/client.c.orig nfs-utils-2.3.3/support/export/client.c
8a02d7
--- nfs-utils-2.3.3/support/export/client.c.orig	2018-09-06 14:09:08.000000000 -0400
8a02d7
+++ nfs-utils-2.3.3/support/export/client.c	2023-01-12 08:59:44.171609492 -0500
8a02d7
@@ -689,6 +689,9 @@ check_netgroup(const nfs_client *clp, co
8a02d7
 
8a02d7
 	/* check whether the IP itself is in the netgroup */
8a02d7
 	ip = calloc(INET6_ADDRSTRLEN, 1);
8a02d7
+	if (ip == NULL)
8a02d7
+		goto out;
8a02d7
+
8a02d7
 	if (inet_ntop(ai->ai_family, &(((struct sockaddr_in *)ai->ai_addr)->sin_addr), ip, INET6_ADDRSTRLEN) == ip) {
8a02d7
 		if (innetgr(netgroup, ip, NULL, NULL)) {
8a02d7
 			free(hname);
8a02d7
diff -up nfs-utils-2.3.3/tools/nfsrahead/main.c.orig nfs-utils-2.3.3/tools/nfsrahead/main.c
8a02d7
--- nfs-utils-2.3.3/tools/nfsrahead/main.c.orig	2023-01-12 08:58:28.297466979 -0500
8a02d7
+++ nfs-utils-2.3.3/tools/nfsrahead/main.c	2023-01-12 09:00:37.988419866 -0500
8a02d7
@@ -167,7 +167,7 @@ int main(int argc, char **argv)
8a02d7
 		if ((ret = get_device_info(argv[optind], &device)) == 0)
8a02d7
 			break;
8a02d7
 
8a02d7
-	if (ret != 0) {
8a02d7
+	if (ret != 0 || device.fstype == NULL) {
8a02d7
 		xlog(D_GENERAL, "unable to find device %s\n", argv[optind]);
8a02d7
 		goto out;
8a02d7
 	}