This is an automated email from the ASF dual-hosted git repository.
lorinlee pushed a commit to branch rdma
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/rdma by this push:
new ef54548 Fix a null deref in Controller::EndRPC
new b91029d Merge pull request #1670 from opheliaKyouko/rdma_fix
ef54548 is described below
commit ef54548847eda0c5cd8a57e972e42fcdbe86a5bc
Author: xuechuanyu <[email protected]>
AuthorDate: Thu Jan 13 19:19:51 2022 +0800
Fix a null deref in Controller::EndRPC
---
src/brpc/controller.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/brpc/controller.cpp b/src/brpc/controller.cpp
index ebd2797..1cb5f33 100644
--- a/src/brpc/controller.cpp
+++ b/src/brpc/controller.cpp
@@ -835,7 +835,7 @@ void Controller::EndRPC(const CompletionInfo& info) {
<< info.id << " current_cid=" << current_id()
<< " initial_cid=" << _correlation_id
<< " stream_user_data=" <<
_current_call.stream_user_data
- << " sending_sock=" << *_current_call.sending_sock;
+ << " sending_sock=" <<
_current_call.sending_sock.get();
}
_current_call.OnComplete(this, ECANCELED, false, false);
if (_unfinished_call != NULL) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]