Do not check *aoutSize in PGetPAG
[openafs.git] / src / afs / afs_pioctl.c
index 467b381..a16388e 100644 (file)
@@ -2342,18 +2342,12 @@ DECL_PIOCTL(PViceAccess)
  * \param[in] ain      not in use
  * \param[out] aout    PAG value or NOPAG
  *
- * \retval E2BIG       Error not enough space to copy out value
- *
  * \post get PAG value for the caller's cred
  */
 DECL_PIOCTL(PGetPAG)
 {
     afs_int32 pag;
 
-    if (*aoutSize < sizeof(afs_int32)) {
-       return E2BIG;
-    }
-
     pag = PagInCred(*acred);
 
     memcpy(aout, (char *)&pag, sizeof(afs_int32));