pt_util: Catch sscanf failures
authorSimon Wilkinson <sxw@your-file-system.com>
Wed, 27 Feb 2013 09:21:30 +0000 (09:21 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 27 Feb 2013 20:42:24 +0000 (12:42 -0800)
commit62a10e063b4fe6721bd9768611d5f0c13b303189
treee935e6cf5bd90d0a03e0d9244c145505402971ec
parenta332ce9d0e87fab55f3d286690026fe075f624dd
pt_util: Catch sscanf failures

If there isn't sufficient data in the input line to satisfy sscanf,
fail with an error, rather than continuing with potentially corrupt
data.

Change-Id: I5f963b5623176ac7631693b093d23cf9f0405edc
Reviewed-on: http://gerrit.openafs.org/9295
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/ptserver/pt_util.c