Module Name:    src
Committed By:   mlelstv
Date:           Sat Jul 13 23:51:19 UTC 2024

Modified Files:
        src/sbin/iscsid: iscsid_driverif.c

Log Message:
Abort operation when a target address cannot be resolved.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sbin/iscsid/iscsid_driverif.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/iscsid/iscsid_driverif.c
diff -u src/sbin/iscsid/iscsid_driverif.c:1.10 src/sbin/iscsid/iscsid_driverif.c:1.11
--- src/sbin/iscsid/iscsid_driverif.c:1.10	Wed Dec 27 18:07:30 2023
+++ src/sbin/iscsid/iscsid_driverif.c	Sat Jul 13 23:51:19 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsid_driverif.c,v 1.10 2023/12/27 18:07:30 mlelstv Exp $	*/
+/*	$NetBSD: iscsid_driverif.c,v 1.11 2024/07/13 23:51:19 mlelstv Exp $	*/
 
 /*-
  * Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -293,13 +293,13 @@ make_connection(session_t * sess, iscsid
 		break;
 	case EAI_NODATA:
 		res->status = ISCSID_STATUS_HOST_NOT_FOUND;
-		break;
+		return NULL;
 	case EAI_AGAIN:
 		res->status = ISCSID_STATUS_HOST_TRY_AGAIN;
-		break;
+		return NULL;
 	default:
 		res->status = ISCSID_STATUS_HOST_ERROR;
-		break;
+		return NULL;
 	}
 
 	/* alloc the connection structure */

Reply via email to