Fix Bug #5548 (segfauls in handle_include with %m macro expansion).
authorMichael Adam <obnox@samba.org>
Wed, 18 Jun 2008 12:50:53 +0000 (14:50 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 18 Jun 2008 12:50:53 +0000 (14:50 +0200)
commit1917b388734217426ecf14fb041f97060873c8fa
tree63156d98dec92417f626617ca1c688cf9fe5adbf
parentaedce263a81a2ff167f25fa7ac865ac858a5cb90
Fix Bug #5548 (segfauls in handle_include with %m macro expansion).

In alloc_sub_basic, when expanding '%m', substitute "" instead of
NULL for remote_machine when this is NULL. Else a NULL string
is returned.

Michael
(This used to be commit c65b456c6a145d15b7fd27a2a3440a0709fc3277)
source3/lib/substitute.c