mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
Merge pull request #11164 from miri64/gnrc_sixlowpan_iphc/fix/check-NULL-ptr-for-compressible
gnrc_sixlowpan_iphc: check ptr != NULL in compressible check
This commit is contained in:
commit
116642f1de
@ -673,7 +673,7 @@ void gnrc_sixlowpan_iphc_send(gnrc_pktsnip_t *pkt, void *ctx, unsigned page)
|
||||
dispatch = NULL; /* use dispatch as temporary pointer for prev */
|
||||
/* determine maximum dispatch size and write protect all headers until
|
||||
* then because they will be removed */
|
||||
while (_compressible(ptr)) {
|
||||
while ((ptr != NULL) && _compressible(ptr)) {
|
||||
gnrc_pktsnip_t *tmp = gnrc_pktbuf_start_write(ptr);
|
||||
|
||||
if (tmp == NULL) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user