diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-09-01 18:30:17 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-09-05 18:37:25 +0200 |
commit | 4d5ce1b0b3b41b8fb53126a0c67534db7d010a75 (patch) | |
tree | b504c18f1284a3281c74433c294d9182ac90992a /src/afb-session.c | |
parent | 32fb61f039933a946067cff434e8a3386694a1d4 (diff) |
Fix segmentation fault when random token
Change-Id: I98795f71dfab1fbc86d694d7ed357ae8387abd5d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-session.c')
-rw-r--r-- | src/afb-session.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afb-session.c b/src/afb-session.c index d3e658dd..8b566838 100644 --- a/src/afb-session.c +++ b/src/afb-session.c @@ -135,6 +135,11 @@ void afb_session_init (int max_session_count, int timeout, const char *initok) } } +const char *afb_session_initial_token() +{ + return sessions.initok; +} + static struct afb_session *search (const char* uuid) { int idx; |