Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/blikjeham/portall
Browse files Browse the repository at this point in the history
Conflicts:
	tlv.c
  • Loading branch information
blikjeham committed Jun 14, 2014
2 parents c57df4c + eb43aaf commit 9d0def6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tlv.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ void buffer_to_tlv(pbuffer *buffer, struct tlv *tlv)
{
extract_torv(buffer, &tlv->type);
extract_torv(buffer, &tlv->length);
tlv->value = buffer;
DB("t: %d, l: %d", tlv->type, tlv->length);

pbuffer_copy(tlv->value, buffer, tlv->length);

pbuffer_consume(buffer);
}

Expand Down

0 comments on commit 9d0def6

Please sign in to comment.