diff options
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r-- | accel-pppd/extra/ippool.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c index 2790183d..825b8f37 100644 --- a/accel-pppd/extra/ippool.c +++ b/accel-pppd/extra/ippool.c @@ -487,6 +487,18 @@ static void parse_options(const char *opt, char **pool_name, char **allocator) memcpy(*allocator, ptr1 + 10, len); (*allocator)[len] = 0; } + + if (!*pool_name) { + ptr1 = strchr(opt, ','); + if (!ptr1) + return; + + for (ptr2 = ptr1 + 1; *ptr2 && *ptr2 != '='; ptr2++); + if (*ptr2 == '=') + return; + + *pool_name = _strdup(ptr1 + 1); + } } static void ippool_init1(void) |