Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153964198
D36974.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
691 B
Referenced Files
None
Subscribers
None
D36974.diff
View Options
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -2113,7 +2113,7 @@
/*
* Now add new ports or modify existing ones.
*/
- TAILQ_FOREACH(newport, &newconf->conf_ports, p_next) {
+ TAILQ_FOREACH_SAFE(newport, &newconf->conf_ports, p_next, tmpport) {
if (port_is_dummy(newport))
continue;
oldport = port_find(oldconf, newport->p_name);
@@ -2130,6 +2130,8 @@
log_warnx("failed to %s port %s",
(oldport == NULL) ? "add" : "update",
newport->p_name);
+ if (oldport == NULL || port_is_dummy(oldport))
+ port_delete(newport);
/*
* XXX: Uncomment after fixing the root cause.
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 26, 3:37 AM (11 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32159059
Default Alt Text
D36974.diff (691 B)
Attached To
Mode
D36974: ctld: if adding a target fails, retry it on the next reload
Attached
Detach File
Event Timeline
Log In to Comment