Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284634
b: refs/heads/master
c: b2ea70a
h: refs/heads/master
v: v3
  • Loading branch information
Sasha Levin authored and J. Bruce Fields committed Dec 6, 2011
1 parent 6d77191 commit 069f8f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67114fe6103183190fb0a24f58e5695a80beb2ec
refs/heads/master: b2ea70afade7080360ac55c4e64ff7a5fafdb67b
2 changes: 1 addition & 1 deletion trunk/fs/nfsd/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)
struct svc_expkey key;
struct svc_expkey *ek = NULL;

if (mesg[mlen-1] != '\n')
if (mlen < 1 || mesg[mlen-1] != '\n')
return -EINVAL;
mesg[mlen-1] = 0;

Expand Down

0 comments on commit 069f8f9

Please sign in to comment.