aboutsummaryrefslogtreecommitdiffstats
path: root/net/mpd5/files/patch-fixparent
blob: a21ddf72ff6d9b891957dce070ae60a98f994cd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: pppoe.c
===================================================================
--- src/pppoe.c	(revision 2430)
+++ src/pppoe.c	(working copy)
@@ -408,6 +408,10 @@ PppoeOpen(Link l)
 	    &cn, sizeof(cn)) < 0) {
 		Perror("[%s] PPPoE: can't connect \"%s\"->\"%s\" and \"%s\"->\"%s\"",
     		    l->name, path, cn.ourhook, cn.path, cn.peerhook);
+		if (errno == ENOENT) {
+		    PppoeReleaseNode(l);
+		    goto fail;
+		}
 		goto fail2;
 	}