From 2c8eb394c28e9af4aaa8c91db8584312e6058b79 Mon Sep 17 00:00:00 2001 From: David Howells Date: Sat, 25 Mar 2006 03:06:51 -0800 Subject: [PATCH] --- yaml --- r: 23516 b: refs/heads/master c: 3dccff8dc00994428777f483922058c554db85bd h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/security/keys/key.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 67eb0b98a0be..2c44827e51d3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a7d06ca7b626c9257bee4439d9d80a7e44ae237e +refs/heads/master: 3dccff8dc00994428777f483922058c554db85bd diff --git a/trunk/security/keys/key.c b/trunk/security/keys/key.c index 99781b798312..627697181e6a 100644 --- a/trunk/security/keys/key.c +++ b/trunk/security/keys/key.c @@ -1,6 +1,6 @@ /* key.c: basic authentication token and access key management * - * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. + * Copyright (C) 2004-6 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or @@ -271,7 +271,7 @@ struct key *key_alloc(struct key_type *type, const char *desc, * its description */ if (!not_in_quota) { spin_lock(&user->lock); - if (user->qnkeys + 1 >= KEYQUOTA_MAX_KEYS && + if (user->qnkeys + 1 >= KEYQUOTA_MAX_KEYS || user->qnbytes + quotalen >= KEYQUOTA_MAX_BYTES ) goto no_quota;