]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/rp-pppoe/pppoe-discovery.c
pppoe-discovery: use correct exit code depending on PADO replies.
[ppp.git] / pppd / plugins / rp-pppoe / pppoe-discovery.c
index 3c19dfa0031c105e0416d58ee489a34edd6445a0..784bd718b6dbfc1445fd50d064a14af2c2083ce8 100644 (file)
@@ -698,7 +698,11 @@ int main(int argc, char *argv[])
     conn->printACNames = 1;
 
     discovery(conn);
-    exit(0);
+
+    if (!conn->numPADOs)
+       exit(1);
+    else
+       exit(0);
 }
 
 void rp_fatal(char const *str)