diff options
Diffstat (limited to 'linuxthreads_db/td_ta_get_ph.c')
-rw-r--r-- | linuxthreads_db/td_ta_get_ph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linuxthreads_db/td_ta_get_ph.c b/linuxthreads_db/td_ta_get_ph.c index 538990fee4..b748916ba1 100644 --- a/linuxthreads_db/td_ta_get_ph.c +++ b/linuxthreads_db/td_ta_get_ph.c @@ -26,6 +26,10 @@ td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph) { LOG (__FUNCTION__); + /* Test whether the TA parameter is ok. */ + if (! ta_ok (ta)) + return TD_BADTA; + *ph = ta->ph; return TD_OK; |