Changeset 10525
- Timestamp:
- 02/15/15 01:41:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam-cacheex.c
r10524 r10525 227 227 } 228 228 229 uint32_t size = 20 +sizeof(er->ecmd5) + sizeof(er->csp_hash) + sizeof(er->cw) + sizeof(uint8_t) +229 uint32_t size = sizeof(er->ecmd5) + sizeof(er->csp_hash) + sizeof(er->cw) + sizeof(uint8_t) + 230 230 (ll_count(er->csp_lastnodes) + 1) * 8; 231 231 232 232 unsigned char *buf; 233 if(!cs_malloc(&buf, size ))233 if(!cs_malloc(&buf, size + 20)) //camd35_send() adds +20 234 234 { return -1; } 235 235 … … 300 300 ll_li_destroy(li); 301 301 302 int32_t res = cc_cmd_send(cl, buf, size , MSG_CACHE_PUSH);302 int32_t res = cc_cmd_send(cl, buf, size + 20, MSG_CACHE_PUSH); 303 303 if(res > 0) // cache-ex is pushing out, so no receive but last_g should be updated otherwise disconnect! 304 304 {
Note:
See TracChangeset
for help on using the changeset viewer.