aboutsummaryrefslogtreecommitdiffstats
path: root/src/dumm/guest.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-08-09 07:14:56 +0000
committerMartin Willi <martin@strongswan.org>2007-08-09 07:14:56 +0000
commit10c6cc0a36f5628a4381cf696810b152aff252b7 (patch)
treef52a2a318963ac806e54bc85af4173063f124bcb /src/dumm/guest.c
parentfd4ded974d96273886ea537e5a35ffbe80d4d7b5 (diff)
downloadstrongswan-10c6cc0a36f5628a4381cf696810b152aff252b7.tar.bz2
strongswan-10c6cc0a36f5628a4381cf696810b152aff252b7.tar.xz
removed Makefile from svn
support for scenario switching
Diffstat (limited to 'src/dumm/guest.c')
-rw-r--r--src/dumm/guest.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dumm/guest.c b/src/dumm/guest.c
index 24736f47d..abed80695 100644
--- a/src/dumm/guest.c
+++ b/src/dumm/guest.c
@@ -259,6 +259,11 @@ static bool set_scenario(private_guest_t *this, char *path)
char dir[PATH_MAX];
size_t len;
+ if (path == NULL)
+ {
+ return this->cowfs->set_scenario(this->cowfs, NULL);
+ }
+
len = snprintf(dir, sizeof(dir), "%s/%s", path, this->name);
if (len < 0 || len >= sizeof(dir))
{
@@ -272,8 +277,7 @@ static bool set_scenario(private_guest_t *this, char *path)
return FALSE;
}
}
- this->cowfs->set_scenario(this->cowfs, dir);
- return TRUE;
+ return this->cowfs->set_scenario(this->cowfs, dir);
}
/**