diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 15:25:45 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 15:25:45 +0000 |
commit | 32398b98a8735dfc7a53b1ab2f748c15f0e69881 (patch) | |
tree | f479be89914bc58dff8fb46af0252761c23a747f /client-msg.c | |
parent | 0fdd47660a1b3b1014292e0b28a4ae20a642776d (diff) | |
download | rtmux-32398b98a8735dfc7a53b1ab2f748c15f0e69881.tar.gz rtmux-32398b98a8735dfc7a53b1ab2f748c15f0e69881.tar.bz2 rtmux-32398b98a8735dfc7a53b1ab2f748c15f0e69881.zip |
Sync to OpenBSD: fixes from ray@.
Diffstat (limited to 'client-msg.c')
-rw-r--r-- | client-msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client-msg.c b/client-msg.c index 182b26f2..14600421 100644 --- a/client-msg.c +++ b/client-msg.c @@ -1,4 +1,4 @@ -/* $Id: client-msg.c,v 1.18 2009-01-21 22:47:31 nicm Exp $ */ +/* $Id: client-msg.c,v 1.19 2009-06-25 15:25:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -73,7 +73,7 @@ client_msg_dispatch(struct client_ctx *cctx, char **error) int client_msg_fn_error(struct hdr *hdr, struct client_ctx *cctx, char **error) { - if (hdr->size > SIZE_MAX - 1) + if (hdr->size == SIZE_MAX) fatalx("bad MSG_ERROR size"); *error = xmalloc(hdr->size + 1); |