[sheepdog] [PATCH] dog: fix send_light_req
Liu Yuan
namei.unix at gmail.com
Thu Aug 22 07:52:20 CEST 2013
This patch fixes segfault of many dog commands due to commit a4d01de
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
dog/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dog/common.c b/dog/common.c
index 301b8bf..b185d4e 100644
--- a/dog/common.c
+++ b/dog/common.c
@@ -202,7 +202,7 @@ int dog_exec_req(const uint8_t *addr, int port, struct sd_req *hdr,
int send_light_req(struct sd_req *hdr, const uint8_t *addr, int port)
{
int ret = dog_exec_req(addr, port, hdr, NULL);
- struct sd_rsp *rsp = (struct sd_rsp *)&hdr;
+ struct sd_rsp *rsp = (struct sd_rsp *)hdr;
if (ret == -1)
return -1;
--
1.7.9.5
More information about the sheepdog
mailing list