diff options
author | brian <brian@FreeBSD.org> | 1999-06-18 13:49:01 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-06-18 13:49:01 +0000 |
commit | db9a1d7a4e9f450a3216fa0666a034c28d3cc40a (patch) | |
tree | 9e4ee35c723192bbc7526f2af3b553dcacf9c8e7 /usr.sbin/ppp | |
parent | 395a4557a1fc4b73bec0ba74f9a1be3b2d95f20a (diff) | |
download | FreeBSD-src-db9a1d7a4e9f450a3216fa0666a034c28d3cc40a.zip FreeBSD-src-db9a1d7a4e9f450a3216fa0666a034c28d3cc40a.tar.gz |
Don't use the ``next'' redial timer if we have no phone number at all.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/datalink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index e51a2fb..d94091c 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: datalink.c,v 1.39 1999/05/12 09:48:47 brian Exp $ + * $Id: datalink.c,v 1.40 1999/06/10 09:06:30 brian Exp $ */ #include <sys/param.h> @@ -184,6 +184,8 @@ datalink_ChoosePhoneNumber(struct datalink *dl) if (dl->phone.next == NULL) { strncpy(dl->phone.list, dl->cfg.phone.list, sizeof dl->phone.list - 1); dl->phone.list[sizeof dl->phone.list - 1] = '\0'; + if (*dl->phone.list == '\0') + return ""; dl->phone.next = dl->phone.list; } dl->phone.alt = strsep(&dl->phone.next, ":"); |