]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
fixup! cbor_cmds.c, ospf_for_cbor.c: ospf show topology looks working
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Fri, 1 Dec 2023 14:00:26 +0000 (15:00 +0100)
committerKaterina Kubecova <katerina.kubecova@nic.cz>
Fri, 1 Dec 2023 14:00:26 +0000 (15:00 +0100)
nest/cbor.c

index 924a6fa3bd41f2c5f1ac5c803a440e0525717119..1dba7fc9cd0b735e6bbc5d1ec07d318b80d0822d 100644 (file)
@@ -83,7 +83,6 @@ void cbor_add_string(struct cbor_writer *writer, const char *string)
 
 void cbor_nonterminated_string(struct cbor_writer *writer, const char *string, uint length)
 {
-  int length = strlen(string);
   write_item(writer, 3, length);  // 3 is major, then goes length of string and string
   check_memory(writer, length);
   memcpy(writer->cbor+writer->pt, string, length);