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
  • Loading branch information
rvlad-patrascu committed Jun 17, 2020
1 parent d105f20 commit f4227fa
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 @@ -38,6 +39,7 @@
#include "../tls_mgm/api.h"
#include "rest_client.h"
#include "rest_methods.h"
#include "../../ssl_init_tweaks.h"

/*
* Module parameters
Expand Down

0 comments on commit f4227fa

Please sign in to comment.