X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7b4e9735718f43af93bafbe3c30ad4d1776d1394..55ea995e73e351eaf7a480a7b74b3bd75a3f5556:/print-ospf.c diff --git a/print-ospf.c b/print-ospf.c index 6fd33b28..af91c687 100644 --- a/print-ospf.c +++ b/print-ospf.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.57 2005-04-20 21:55:14 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.58 2005-05-06 07:56:53 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -932,8 +932,11 @@ ospf_print(register const u_char *bp, register u_int length, break; case OSPF_AUTH_SIMPLE: - (void)fn_printn(op->ospf_authdata, - sizeof(op->ospf_authdata), NULL); + if (fn_printn(op->ospf_authdata, + sizeof(op->ospf_authdata), snapend)) { + printf("\""); + goto trunc; + } printf("\""); break;