Commit
926f961f62f5 used a new temporary pointer variable
for type correctness, but the return value was still using
the previous variable which had not been moved forward
anymore.
Fixes: 926f961f62f5 ("pmxcfs dcdb: fix pointer void* aritmethic")
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
return FALSE;
}
- uint8_t *msg_ptr = (uint8_t *) msg;
+ const uint8_t *msg_ptr = msg;
*size = *((guint32 *)msg_ptr);
msg_ptr += 4; msg_len -= 4;
*to = NULL;
}
- *buf = (*size) ? msg : NULL;
+ *buf = (*size) ? (const char*)msg_ptr : NULL;
return TRUE;
}