]> git.proxmox.com Git - mirror_frr.git/commitdiff
* isis_lsp.c: Yet another regression introduced by stream cleanup.
authorhasso <hasso>
Sat, 3 Sep 2005 16:29:40 +0000 (16:29 +0000)
committerhasso <hasso>
Sat, 3 Sep 2005 16:29:40 +0000 (16:29 +0000)
  Similar fix to the one commited to lsp_build_nonpseudo() some days
  ago.

isisd/ChangeLog
isisd/isis_lsp.c

index f2e0f51aeedbe839510e3bb173909db10c8b6459..d418d63b0bee9093c9e4eeb313acc231f85770be 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-03 Hasso Tepper <hasso at quagga.net>
+
+       * isis_lsp.c: Yet another regression introduced by stream cleanup.
+         Similar fix to the one commited to lsp_build_nonpseudo() some days
+         ago.
+
 2005-09-01 Hasso Tepper <hasso at quagga.net>
 
        * isis_lsp.c: Less TLV leaking.
index a425b341c2e525f62ac81f41025bf67be79d3d7e..cb7b93b4cf62459585007d5f4e8944e972632cd6 100644 (file)
@@ -1911,6 +1911,10 @@ lsp_build_pseudo (struct isis_lsp *lsp, struct isis_circuit *circuit,
        }
     }
 
+  /* Reset endp of stream to overwrite only TLV part of it. */
+  lsp->pdu->endp = 0;
+  stream_forward_endp (lsp->pdu, ISIS_FIXED_HDR_LEN + ISIS_LSP_HDR_LEN);
+
   /*
    * Add the authentication info if it's present
    */