mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
cifs: send IPv6 addr in upcall with colon delimiters
Make it easier on the upcall program by adding ':' delimiters between each group of hex digits. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
ca43e3beee
commit
8c58b54574
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo)
|
||||||
if (server->addr.sockAddr.sin_family == AF_INET)
|
if (server->addr.sockAddr.sin_family == AF_INET)
|
||||||
sprintf(dp, "ip4=%pI4", &server->addr.sockAddr.sin_addr);
|
sprintf(dp, "ip4=%pI4", &server->addr.sockAddr.sin_addr);
|
||||||
else if (server->addr.sockAddr.sin_family == AF_INET6)
|
else if (server->addr.sockAddr.sin_family == AF_INET6)
|
||||||
sprintf(dp, "ip6=%pi6", &server->addr.sockAddr6.sin6_addr);
|
sprintf(dp, "ip6=%pI6", &server->addr.sockAddr6.sin6_addr);
|
||||||
else
|
else
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue