From 7bcccff8a14a2975a2189dc1eec25bd945d6d64d Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 19 Jul 1995 21:20:04 +0000 Subject: [PATCH] * localaddr.c: fix definition of ifreq_size so it actually works git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6315 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/os/ChangeLog | 4 ++++ src/lib/crypto/os/localaddr.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/crypto/os/ChangeLog b/src/lib/crypto/os/ChangeLog index 5dcc23044..c155a075a 100644 --- a/src/lib/crypto/os/ChangeLog +++ b/src/lib/crypto/os/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 19 17:17:54 1995 Tom Yu + + * localaddr.c: fix definition of ifreq_size so it actually works + Mon Jul 17 16:04:00 1995 Sam Hartman * localaddr.c (krb5_crypto_os_localaddr): Deal with variable sized diff --git a/src/lib/crypto/os/localaddr.c b/src/lib/crypto/os/localaddr.c index ddf58181e..842bf9a83 100644 --- a/src/lib/crypto/os/localaddr.c +++ b/src/lib/crypto/os/localaddr.c @@ -81,7 +81,7 @@ */ #ifdef HAVE_SA_LEN #define ifreq_size(i) max(sizeof(struct ifreq),\ - sizeof(i.ifr_name)+i.ifr_addr.sa_len) + sizeof((i).ifr_name)+(i).ifr_addr.sa_len) #else #define ifreq_size(i) sizeof(struct ifreq) #endif /* HAVE_SA_LEN*/ -- 2.26.2