52 Star 241 Fork 96

OpenHarmony / communication_services_softbus_lite

COAP_DEVICE_DISCOVER_URI定义后未正确使用

Bug
Backlog
沈峰  Opened this issue

discovery/coap/source/coap_adapter.c
函数BuildSendPkt

respPktPara.options[respPktPara.optionsNum].optionBuf = (unsigned char *)"device_discover";
respPktPara.options[respPktPara.optionsNum].len = strlen("device_discover");

这里应该使用 coap_discover.h中定义的宏,而不应该直接使用字符串。
#define COAP_DEVICE_DISCOVER_URI "device_discover"

Attachments
total 1 participants

Comments (0)

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
1
https://git.oschina.net/openharmony/communication_services_softbus_lite.git
git@git.oschina.net:openharmony/communication_services_softbus_lite.git
openharmony
communication_services_softbus_lite
communication_services_softbus_lite

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542