libceph: add missing breaks in addr_set_port
authorSage Weil <sage@newdream.net>
Thu, 12 May 2011 22:34:24 +0000 (15:34 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 May 2011 18:25:05 +0000 (11:25 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/messenger.c

index 35c0000a658eff22093fef0bded35bb5da05d0c5..78b55f49de7cba5bbdf0fb872b4b3c0464190f04 100644 (file)
@@ -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;
        }
 }