提交 0f22bf3e 编写于 作者: dengyihao's avatar dengyihao

enh(rpc):add auth

上级 fa14caff
...@@ -847,9 +847,9 @@ void tFreeSMAltertbReq(SMAltertbReq *pReq) { ...@@ -847,9 +847,9 @@ void tFreeSMAltertbReq(SMAltertbReq *pReq) {
int32_t tSerializeSMEpSet(void *buf, int32_t bufLen, SMEpSet *pReq) { int32_t tSerializeSMEpSet(void *buf, int32_t bufLen, SMEpSet *pReq) {
SCoder encoder = {0}; SCoder encoder = {0};
tCoderInit(&encoder, TD_LITTLE_ENDIAN, buf, bufLen, TD_ENCODER); tCoderInit(&encoder, TD_LITTLE_ENDIAN, buf, bufLen, TD_ENCODER);
if (tEncodeSEpSet(&encoder, &pReq->epSet) < 0) { if (tStartEncode(&encoder) < 0) return -1;
return -1; if (tEncodeSEpSet(&encoder, &pReq->epSet) < 0) return -1;
}
tEndEncode(&encoder); tEndEncode(&encoder);
int32_t tlen = encoder.pos; int32_t tlen = encoder.pos;
tCoderClear(&encoder); tCoderClear(&encoder);
...@@ -858,9 +858,8 @@ int32_t tSerializeSMEpSet(void *buf, int32_t bufLen, SMEpSet *pReq) { ...@@ -858,9 +858,8 @@ int32_t tSerializeSMEpSet(void *buf, int32_t bufLen, SMEpSet *pReq) {
int32_t tDeserializeSMEpSet(void *buf, int32_t bufLen, SMEpSet *pReq) { int32_t tDeserializeSMEpSet(void *buf, int32_t bufLen, SMEpSet *pReq) {
SCoder decoder = {0}; SCoder decoder = {0};
tCoderInit(&decoder, TD_LITTLE_ENDIAN, buf, bufLen, TD_DECODER); tCoderInit(&decoder, TD_LITTLE_ENDIAN, buf, bufLen, TD_DECODER);
if (tDecodeSEpSet(&decoder, &pReq->epSet) < 0) { if (tStartDecode(&decoder) < 0) return -1;
return -1; if (tDecodeSEpSet(&decoder, &pReq->epSet) < 0) return -1;
}
tEndDecode(&decoder); tEndDecode(&decoder);
tCoderClear(&decoder); tCoderClear(&decoder);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册