rxgen: Fix NULL pointer dereference
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 15 Feb 2013 16:05:33 +0000 (16:05 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 21 Feb 2013 17:01:37 +0000 (09:01 -0800)
commit0d28f8c0cec91d68023795e6ba9c769d60869f9e
tree47b5c10edb0087c351b3db4d78615542978ee89e
parent1e4800e1c6caf168890c3933855d741bc1312335
rxgen: Fix NULL pointer dereference

Avoid a NULL pointer dereference if strchr doesn't find any occurence
of '*' in the string. Whilst we handle the not found case when inserting
a mid string terminator, we don't handle it when restoring the string to
its previous value.

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