diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-08-12 14:29:20 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-08-12 16:44:45 -0700 |
commit | 96d5676e6ef1a1bf687e44f2790d911364df7878 (patch) | |
tree | 9615ddab243563e492b1ee98ca368b61646d2d4d /extensions.c | |
parent | 3199c6fb39f02b36a07ef65bf4b07d6ec340944d (diff) | |
download | xscope-96d5676e6ef1a1bf687e44f2790d911364df7878.tar.gz |
Stop creating invalid name entries for extensions that aren't present
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'extensions.c')
-rw-r--r-- | extensions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions.c b/extensions.c index cb75ef8..cba6f7c 100644 --- a/extensions.c +++ b/extensions.c @@ -129,6 +129,11 @@ ProcessQueryExtensionReply(long seq, const unsigned char *buf) struct extension_info *qe; int i; + if (buf[8] == 0) { + /* Extension not present, nothing to record */ + return; + } + for (qe = query_list; qe != NULL; qe = qe->next) { if (qe->query_seq == seq) { qe->request = buf[9]; |