diff options
author | Sage Weil <sage@newdream.net> | 2011-05-13 00:34:24 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-05-19 20:25:05 +0200 |
commit | a2a79609c044d3ddb540671d5029a41c90c57251 (patch) | |
tree | 641da035ab11341e8e7e08fee7bf2fde8d6e0214 /net/ceph | |
parent | libceph: fix TAG_WAIT case (diff) | |
download | linux-a2a79609c044d3ddb540671d5029a41c90c57251.tar.xz linux-a2a79609c044d3ddb540671d5029a41c90c57251.zip |
libceph: add missing breaks in addr_set_port
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/messenger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 35c0000a658e..78b55f49de7c 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -1073,8 +1073,10 @@ static void addr_set_port(struct sockaddr_storage *ss, int p) switch (ss->ss_family) { case AF_INET: ((struct sockaddr_in *)ss)->sin_port = htons(p); + break; case AF_INET6: ((struct sockaddr_in6 *)ss)->sin6_port = htons(p); + break; } } |