Squash some NULL printf format warnings, providing better error messages
to the user in the process.
This commit is contained in:
parent
c04f585990
commit
8cc65d3aa6
|
@ -527,7 +527,7 @@ main(argc, argv)
|
|||
errx(1, ipsec_strerror());
|
||||
if (setsockopt(rcvsock, IPPROTO_IPV6, IPV6_IPSEC_POLICY,
|
||||
buf, len) < 0)
|
||||
err(1, NULL);
|
||||
err(1, "Unable to set IPSec policy");
|
||||
}
|
||||
#else
|
||||
{
|
||||
|
@ -586,7 +586,7 @@ main(argc, argv)
|
|||
errx(1, ipsec_strerror());
|
||||
if (setsockopt(sndsock, IPPROTO_IPV6, IPV6_IPSEC_POLICY,
|
||||
buf, len) < 0)
|
||||
err(1, NULL);
|
||||
err(1, "Unable to set IPSec policy");
|
||||
}
|
||||
#else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue