Skip to content

Commit

Permalink
rest_client: fix crash when loading module along with tls_mgm
Browse files Browse the repository at this point in the history
Closes #2115

(cherry picked from commit f4227fa)
  • Loading branch information
rvlad-patrascu committed Jun 17, 2020
1 parent 37a6b59 commit c4b84f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/rest_client/Makefile
Expand Up @@ -9,5 +9,6 @@ include ../../Makefile.defs
auto_gen=
NAME=rest_client.so
LIBS+=-lcurl
LIBS += -dl -Bsymbolic

include ../../Makefile.modules
2 changes: 2 additions & 0 deletions modules/rest_client/rest_client.c
Expand Up @@ -22,6 +22,7 @@
* 2013-02-28: Created (Liviu)
*/

#define _GNU_SOURCE

#include <stdio.h>
#include <stdlib.h>
Expand All @@ -39,6 +40,7 @@
#include "../tls_mgm/api.h"

#include "rest_methods.h"
#include "../../ssl_init_tweaks.h"

/*
* Module parameters
Expand Down

0 comments on commit c4b84f7

Please sign in to comment.