summaryrefslogtreecommitdiff
path: root/src/ceph.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/ceph.in')
-rwxr-xr-xsrc/ceph.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ceph.in b/src/ceph.in
index 0f7179b8aed..6ba92c99b18 100755
--- a/src/ceph.in
+++ b/src/ceph.in
@@ -290,6 +290,8 @@ def admin_socket(asok_path, cmd):
sock.sendall(' '.join(cmd) + '\0')
len_str = sock.recv(4)
+ if len(len_str) < 4:
+ raise RuntimeError("no data returned from admin socket")
l, = struct.unpack(">I", len_str)
ret = ''