summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {