We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 477033f commit 8d03d8bCopy full SHA for 8d03d8b
apps/evmc/extract_vbucket_conf.cc
@@ -45,7 +45,13 @@ void GetVbucketConf::OnHttpReqDone(struct evhttp_request* req, void* arg) {
45
int GetVbucketConf::GetRemoteVbucketConf(const std::string& conf_addr, std::string& context) {
46
evpp::httpc::URLParser url(conf_addr);
47
struct event_base* base = event_base_new();
48
+ if (base == NULL) {
49
+ return -1;
50
+ }
51
struct evhttp_connection* conn = evhttp_connection_base_new(base, nullptr, url.host.c_str(), url.port);
52
+ if (conn == NULL) {
53
54
55
HttpReqDoneArg arg;
56
arg.event = base;
57
arg.retstr = &context;
0 commit comments