Fix Bug #5548 (segfauls in handle_include with %m macro expansion).
commit0f468b9821c5b2bfb2c0fdcb8853103cfa71fc9c
authorMichael Adam <obnox@samba.org>
Wed, 18 Jun 2008 12:50:53 +0000 (18 14:50 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 18 Jun 2008 20:40:40 +0000 (18 22:40 +0200)
tree84650fbb58d3a9a1c278809b171e6c14b212e6eb
parent01675653728c0f0b3a45356f0fee0d7648da7af4
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
(cherry picked from commit c65b456c6a145d15b7fd27a2a3440a0709fc3277)
(cherry picked from commit ffaed197d8cb261e2765b2de6cad17cac7d49672)
source/lib/substitute.c