From b8c5c3b44362778c099531f7a905c56a0423bcef Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Fri, 15 May 2015 10:25:21 +0200 Subject: ripe-atlas-fw: imported version 4650 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- eperd/eooqd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'eperd/eooqd.c') diff --git a/eperd/eooqd.c b/eperd/eooqd.c index 7e071c0..41efa1b 100644 --- a/eperd/eooqd.c +++ b/eperd/eooqd.c @@ -616,7 +616,10 @@ static const char *get_session_id(void) cp= strchr(session_id, '\n'); if (cp) *cp= '\0'; - return session_id; + cp= strrchr(session_id, ' '); + if (!cp) + return NULL; + return cp+1; } static void skip_space(char *cp, char **ncpp) -- cgit v1.2.3