summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-07-03 00:54:55 +0000
committerSimo Sorce <idra@samba.org>2001-07-03 00:54:55 +0000
commit9b70d328cbe3a48cde2821db4293ee6a974ac86d (patch)
tree8d7d7b08a65c6fe5e42c652cc7662758a27f0c68 /source3
parent6daea198a8cf7daadd014420ec22e29aba6ca0ad (diff)
downloadsamba-9b70d328cbe3a48cde2821db4293ee6a974ac86d.tar.gz
samba-9b70d328cbe3a48cde2821db4293ee6a974ac86d.tar.bz2
samba-9b70d328cbe3a48cde2821db4293ee6a974ac86d.zip
- sorry, forgot to check a pointer
(This used to be commit 4e0299d4c091bc4a63740f12588675507601e8cd)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/interface.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 48070c4446..e16afa45af 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -215,9 +215,11 @@ void load_interfaces(void)
return;
}
- while (*ptr) {
- interpret_interface(*ptr);
- ptr++;
+ if (ptr) {
+ while (*ptr) {
+ interpret_interface(*ptr);
+ ptr++;
+ }
}
if (!local_interfaces) {